Skip to content

Commit

Permalink
tests: apply review comments
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <[email protected]>
  • Loading branch information
ljedrz committed May 10, 2022
1 parent f9a0065 commit f554844
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ features = [ "sync" ]
[dependencies.tracing]
version = "0.1"

[dev-dependencies.aleo-std]
version = "0.1.12"

[dev-dependencies.criterion]
version = "0.3"

Expand Down
8 changes: 6 additions & 2 deletions storage/tests/dump_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@

use snarkos_environment::CurrentNetwork;
use snarkos_storage::{storage::rocksdb::RocksDB, LedgerState};
use snarkvm::dpc::traits::network::Network;

#[test]
#[ignore = "This can be run whenever a block dump is needed."]
fn dump_blocks() {
// The path containing the ledger to dump from.
let source_path = "/home/<user>/.aleo/storage/ledger-2";
// Compose the correct file path for the parameter file.
let mut source_path = aleo_std::aleo_dir();
source_path.push("storage");
source_path.push(format!("ledger-{}", CurrentNetwork::NETWORK_ID));

// The path to dump the blocks to.
let target_path = "./blocks.dump";
// The number of blocks to dump.
Expand Down

0 comments on commit f554844

Please sign in to comment.