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 @@ -19,6 +19,8 @@ use thiserror::Error;
19
19
/// use async_trait::async_trait;
20
20
/// use mithril_common::digesters::{ImmutableDigester, ImmutableDigesterError};
21
21
/// use mithril_common::entities::CardanoDbBeacon;
22
+ /// use mithril_common::crypto_helper::{MKTree, MKTreeStoreInMemory};
23
+ /// use anyhow::anyhow;
22
24
/// use mockall::mock;
23
25
/// use std::path::Path;
24
26
///
@@ -32,6 +34,12 @@ use thiserror::Error;
32
34
/// dirpath: &Path,
33
35
/// beacon: &CardanoDbBeacon,
34
36
/// ) -> Result<String, ImmutableDigesterError>;
37
+ ///
38
+ /// async fn compute_merkle_tree(
39
+ /// &self,
40
+ /// dirpath: &Path,
41
+ /// beacon: &CardanoDbBeacon,
42
+ /// ) -> Result<MKTree<MKTreeStoreInMemory>, ImmutableDigesterError>;
35
43
/// }
36
44
/// }
37
45
///
@@ -45,6 +53,9 @@ use thiserror::Error;
45
53
/// db_dir: PathBuff::new(),
46
54
/// })
47
55
/// });
56
+ /// mock.expect_compute_merkle_tree().return_once(|_, _| {
57
+ /// Err(ImmutableDigesterError::MerkleTreeComputationError(anyhow!("Error")))
58
+ /// });
48
59
/// }
49
60
/// }
50
61
/// ```
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub struct Args {
95
95
#[ clap(
96
96
long,
97
97
value_delimiter = ',' ,
98
- default_value = "CardanoTransactions,CardanoStakeDistribution"
98
+ default_value = "CardanoTransactions,CardanoStakeDistribution,CardanoDatabase "
99
99
) ]
100
100
signed_entity_types : Vec < String > ,
101
101
You can’t perform that action at this time.
0 commit comments