Skip to content

Commit 80593e2

Browse files
authored
Merge pull request #848 from openmina/tx_fuzzer
Tx fuzzer
2 parents a4d9801 + 0bf8910 commit 80593e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+14031
-1340
lines changed

Cargo.lock

Lines changed: 257 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ members = [
2727
"tools/hash-tool",
2828
"tools/ledger-tool",
2929
"tools/salsa-simple",
30+
"tools/fuzzing",
3031
"producer-dashboard",
3132

3233
"fuzzer",

ledger/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ compression = ["zstd"]
102102
# Add this feature to run tests in both nodejs and browser:
103103
# https://github.com/rustwasm/wasm-bindgen/issues/2571
104104
in_nodejs = []
105-
105+
fuzzing = []
106106

107107
[profile.release]
108108
debug = true

ledger/src/dummy/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ use mina_p2p_messages::v2::PicklesProofProofsVerifiedMaxStableV2;
55

66
pub use openmina_core::dummy::*;
77

8-
#[cfg(test)]
8+
#[cfg(any(test, feature = "fuzzing"))]
99
use crate::VerificationKey;
1010

11-
#[cfg(test)]
11+
#[cfg(any(test, feature = "fuzzing"))]
1212
pub mod for_tests;
1313

1414
/// Value of `vk` when we run `dune runtest src/lib/staged_ledger -f`
@@ -24,7 +24,7 @@ pub mod for_tests;
2424
///
2525
/// Core.Printf.eprintf !"vk=%{sexp: (Side_loaded_verification_key.t, Frozen_ledger_hash.t) With_hash.t}\n%!" vk;
2626
/// Core.Printf.eprintf !"vk_binprot=[%s]\n%!" s;
27-
#[cfg(test)] // Used for tests only
27+
#[cfg(any(test, feature = "fuzzing"))] // Used for tests/fuzzing only
2828
pub fn trivial_verification_key() -> VerificationKey {
2929
use mina_p2p_messages::v2::MinaBaseVerificationKeyWireStableV1;
3030

ledger/src/ffi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ mod database;
33
mod mask;
44
mod ondisk;
55
// mod transaction_fuzzer;
6-
mod util;
6+
//mod util;
77

88
use database::*;

0 commit comments

Comments
 (0)