Skip to content

Commit

Permalink
move write_log
Browse files Browse the repository at this point in the history
  • Loading branch information
brentstone committed Dec 25, 2022
1 parent a8ca01e commit 63653ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions core/src/ledger/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub mod merkle_tree;
pub mod mockdb;
pub mod traits;
pub mod types;
pub mod write_log;

use core::fmt::Debug;
use std::collections::BTreeMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,12 +682,12 @@ mod tests {
/// Helpers for testing with write log.
#[cfg(any(test, feature = "testing"))]
pub mod testing {
use namada_core::types::address::testing::arb_address;
use namada_core::types::storage::testing::arb_key;
use proptest::collection;
use proptest::prelude::{any, prop_oneof, Just, Strategy};

use super::*;
use crate::types::address::testing::arb_address;
use crate::types::storage::testing::arb_key;

/// Generate an arbitrary tx write log of [`HashMap<storage::Key,
/// StorageModification>`].
Expand Down
4 changes: 1 addition & 3 deletions shared/src/ledger/storage/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//! Ledger's state storage with key-value backed store and a merkle tree
pub mod write_log;

#[cfg(any(test, feature = "testing"))]
pub use namada_core::ledger::storage::mockdb;
pub use namada_core::ledger::storage::{traits, *};
pub use namada_core::ledger::storage::{traits, write_log, *};

0 comments on commit 63653ca

Please sign in to comment.