Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor update validation and add tests for update validation/misbehaviour cases #15

Merged
merged 6 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
add test-utils feature
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Nov 4, 2024
commit 52d0ac166b154bdeca64ccf2a6f866060189d667
4 changes: 4 additions & 0 deletions crates/consensus/src/lib.rs
Original file line number Diff line number Diff line change
@@ -20,3 +20,7 @@ pub mod merkle;
pub mod preset;
pub mod sync_protocol;
pub mod types;

/// re-export
pub use milagro_bls;
pub use ssz_rs;
5 changes: 3 additions & 2 deletions crates/light-client-verifier/Cargo.toml
Original file line number Diff line number Diff line change
@@ -13,12 +13,12 @@ patricia-merkle-trie = { git = "https://github.com/bluele/patricia-merkle-trie",
primitive-types = { version = "0.12.1", default-features = false }
rlp = { version = "0.5.2", default-features = false }

rand = { version = "0.8.5", features = ["std", "std_rng"], optional = true}

[dev-dependencies]
serde_json = "1.0.91"
hex-literal = "0.3.4"
rand = { version = "0.8.5", features = ["std", "std_rng"] }
ssz-rs = { git = "https://github.com/bluele/ssz_rs", branch = "serde-no-std", default-features = false, features = ["serde"] }
milagro_bls = { git = "https://github.com/datachainlab/milagro_bls", rev = "bc2b5b5e8d48b7e2e1bfaa56dc2d93e13cb32095", default-features = false }

[features]
default = ["std"]
@@ -27,3 +27,4 @@ std = [
"patricia-merkle-trie/std"
]
mock = []
test-utils = ["std", "mock", "rand"]
Loading