Skip to content

Commit

Permalink
ported db code
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiharini committed Nov 8, 2024
1 parent 98fa02c commit 56266e2
Show file tree
Hide file tree
Showing 8 changed files with 672 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ malachite-config = { path = "../malachite/code/crates/config" }
malachite-node = { path = "../malachite/code/crates/node" }
malachite-metrics = { path = "../malachite/code/crates/metrics" }
blake3 = "1.4.1"

tracing = "0.1.40"
thiserror = "1.0.66"
reqwest = { version = "0.12.9", features = ["json"] }
Expand All @@ -38,7 +37,8 @@ futures-util = "0.3.31"
url = "2.5.3"
alloy-transport = "0.5.4"
alloy-sol-types = "0.8.11"

rocksdb = {version="0.22.0", features=["multi-threaded-cf"]}
walkdir = "2.5.0"

[build-dependencies]
tonic-build = "0.9.2"
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pub mod connectors;
pub mod consensus;
pub mod core;
pub mod network;
pub mod storage;

use clap::Parser;
use futures::stream::StreamExt;
Expand Down Expand Up @@ -150,6 +151,7 @@ async fn main() -> Result<(), Box<dyn Error>> {

let ctx = SnapchainValidatorContext::new(keypair.clone());

// TODO(aditi): Need to populate tx_decision
let consensus_actor = Consensus::spawn(
ctx,
shard,
Expand Down
3 changes: 3 additions & 0 deletions src/storage/db/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub use self::rocksdb::*;

mod rocksdb;
Loading

0 comments on commit 56266e2

Please sign in to comment.