File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
mithril-common/src/digesters
mithril-test-lab/mithril-end-to-end/src Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ use thiserror::Error;
1818/// use async_trait::async_trait;
1919/// use mithril_common::digesters::{ImmutableDigester, ImmutableDigesterError};
2020/// use mithril_common::entities::CardanoDbBeacon;
21+ /// use mithril_common::crypto_helper::{MKTree, MKTreeStoreInMemory};
22+ /// use anyhow::anyhow;
2123/// use mockall::mock;
2224/// use std::path::Path;
2325///
@@ -31,6 +33,12 @@ use thiserror::Error;
3133/// dirpath: &Path,
3234/// beacon: &CardanoDbBeacon,
3335/// ) -> Result<String, ImmutableDigesterError>;
36+ ///
37+ /// async fn compute_merkle_tree(
38+ /// &self,
39+ /// dirpath: &Path,
40+ /// beacon: &CardanoDbBeacon,
41+ /// ) -> Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>;
3442/// }
3543/// }
3644///
@@ -44,6 +52,9 @@ use thiserror::Error;
4452/// db_dir: PathBuff::new(),
4553/// })
4654/// });
55+ /// mock.expect_compute_merkle_tree().return_once(|_, _| {
56+ /// Err(ImmutableDigesterError::MerkleTreeComputationError(anyhow!("Error")))
57+ /// });
4758/// }
4859/// }
4960/// ```
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ pub struct Args {
9292 #[ clap(
9393 long,
9494 value_delimiter = ',' ,
95- default_value = "CardanoTransactions,CardanoStakeDistribution"
95+ default_value = "CardanoTransactions,CardanoStakeDistribution,CardanoDatabase "
9696 ) ]
9797 signed_entity_types : Vec < String > ,
9898
You can’t perform that action at this time.
0 commit comments