Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ members = [
"crates/block-producer",
"crates/db",
"crates/grpc-error-macro",
"crates/large-forest-backend-rocksdb",
"crates/large-smt-backend-rocksdb",
"crates/ntx-builder",
"crates/proto",
Expand Down Expand Up @@ -46,7 +47,8 @@ debug = true

[workspace.dependencies]
# Workspace crates.
miden-large-smt-backend-rocksdb = { path = "crates/large-smt-backend-rocksdb", version = "=0.14.0-alpha.5" }
miden-large-smt-backend-rocksdb= { path = "crates/large-smt-backend-rocksdb", version = "=0.14.0-alpha.5" }
miden-large-forest-backend-rocksdb= { path = "crates/large-forest-backend-rocksdb", version = "=0.14.0-alpha.5" }
miden-node-block-producer = { path = "crates/block-producer", version = "=0.14.0-alpha.5" }
miden-node-db = { path = "crates/db", version = "=0.14.0-alpha.5" }
miden-node-grpc-error-macro = { path = "crates/grpc-error-macro", version = "=0.14.0-alpha.5" }
Expand Down
2 changes: 2 additions & 0 deletions bin/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use clap::{Parser, Subcommand};
use miden_node_utils::logging::OpenTelemetry;

mod commands;
#[cfg(test)]
mod tests;

// COMMANDS
// ================================================================================================
Expand Down
46 changes: 46 additions & 0 deletions bin/node/src/tests.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
use clap::Parser;

use crate::Cli;

fn parse(args: &[&str]) -> Result<Cli, clap::Error> {
Cli::try_parse_from(std::iter::once("miden-node").chain(args.iter().copied()))
}

#[test]
fn store_bootstrap_parses() {
let _ = parse(&["store", "bootstrap"]);
}

#[test]
fn block_producer_start_parses() {
let _ = parse(&[
"block-producer",
"start",
]);
}

#[test]
fn validator_bootstrap_parses() {
let _ = parse(&[
"validator",
"bootstrap",
]);
}

#[test]
fn validator_start_parses() {
let _ = parse(&["validator", "start"]);
}

#[test]
fn bundled_bootstrap_parses() {
let _ = parse(&[
"bundled",
"bootstrap",
]);
}

#[test]
fn bundled_start_parses() {
let _ = parse(&["bundled", "start"]);
}
26 changes: 26 additions & 0 deletions crates/large-forest-backend-rocksdb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "miden-large-forest-backend-rocksdb"
description = "Large-scale Sparse Merkle Tree Forest backed by pluggable storage - RocksDB backend"
authors.workspace = true
edition.workspace = true
exclude.workspace = true
homepage.workspace = true
license.workspace = true
readme.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[lints]
workspace = true

[dependencies]
miden-crypto = { features = ["concurrent", "std"], workspace = true }
miden-protocol = { features = ["std"], workspace = true }
rayon = { version = "1.10" }
rocksdb = { default-features = false, features = ["bindgen-runtime", "lz4"], version = "0.24" }
winter-utils = { version = "0.13" }
miden-serde-utils = { workspace = true }

[build-dependencies]
miden-node-rocksdb-cxx-linkage-fix = { workspace = true }
3 changes: 3 additions & 0 deletions crates/large-forest-backend-rocksdb/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
miden_node_rocksdb_cxx_linkage_fix::configure();
}
Loading
Loading