diff --git a/Cargo.lock b/Cargo.lock index 98adfef9b20..971f5d61e77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3426,7 +3426,7 @@ dependencies = [ [[package]] name = "mithril-common" -version = "0.2.162" +version = "0.2.163" dependencies = [ "anyhow", "async-trait", @@ -3552,7 +3552,7 @@ dependencies = [ [[package]] name = "mithril-stm" -version = "0.3.14" +version = "0.3.15" dependencies = [ "bincode", "blake2 0.10.6", diff --git a/mithril-common/Cargo.toml b/mithril-common/Cargo.toml index 61eb6657f28..6e88aee22ea 100644 --- a/mithril-common/Cargo.toml +++ b/mithril-common/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mithril-common" -version = "0.2.162" +version = "0.2.163" description = "Common types, interfaces, and utilities for Mithril nodes." authors = { workspace = true } edition = { workspace = true } diff --git a/mithril-common/src/chain_observer/cli_observer.rs b/mithril-common/src/chain_observer/cli_observer.rs index 5e6d367ed09..2032ae225c9 100644 --- a/mithril-common/src/chain_observer/cli_observer.rs +++ b/mithril-common/src/chain_observer/cli_observer.rs @@ -492,8 +492,8 @@ mod tests { #[tokio::test] async fn test_cli_testnet_runner() { let runner = CardanoCliRunner::new( - PathBuf::new().join("cardano-cli"), - PathBuf::new().join("/tmp/whatever.sock"), + PathBuf::from("cardano-cli"), + PathBuf::from("/tmp/whatever.sock"), CardanoNetwork::TestNet(10), ); @@ -504,8 +504,8 @@ mod tests { #[tokio::test] async fn test_cli_devnet_runner() { let runner = CardanoCliRunner::new( - PathBuf::new().join("cardano-cli"), - PathBuf::new().join("/tmp/whatever.sock"), + PathBuf::from("cardano-cli"), + PathBuf::from("/tmp/whatever.sock"), CardanoNetwork::DevNet(25), ); @@ -516,8 +516,8 @@ mod tests { #[tokio::test] async fn test_cli_mainnet_runner() { let runner = CardanoCliRunner::new( - PathBuf::new().join("cardano-cli"), - PathBuf::new().join("/tmp/whatever.sock"), + PathBuf::from("cardano-cli"), + PathBuf::from("/tmp/whatever.sock"), CardanoNetwork::MainNet, ); diff --git a/mithril-common/src/signable_builder/mod.rs b/mithril-common/src/signable_builder/mod.rs index f4025cd8aca..25bc0e808c3 100644 --- a/mithril-common/src/signable_builder/mod.rs +++ b/mithril-common/src/signable_builder/mod.rs @@ -16,5 +16,5 @@ cfg_fs! { pub use cardano_transactions::*; } -#[cfg(test)] +#[cfg(all(test, feature = "fs"))] pub use cardano_transactions::MockTransactionStore; diff --git a/mithril-stm/Cargo.toml b/mithril-stm/Cargo.toml index 0ee62cb2b07..3a9aef1ba61 100644 --- a/mithril-stm/Cargo.toml +++ b/mithril-stm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mithril-stm" -version = "0.3.14" +version = "0.3.15" edition = { workspace = true } authors = { workspace = true } homepage = { workspace = true } diff --git a/mithril-stm/src/merkle_tree.rs b/mithril-stm/src/merkle_tree.rs index 167de5bd999..c2926207fc1 100644 --- a/mithril-stm/src/merkle_tree.rs +++ b/mithril-stm/src/merkle_tree.rs @@ -295,7 +295,7 @@ impl MerkleTreeCommitmentBatchCompat { // todo: Maybe we want more granular errors, rather than only `BatchPathInvalid` pub fn check( &self, - batch_val: &Vec, + batch_val: &[MTLeaf], proof: &BatchPath, ) -> Result<(), MerkleTreeError> where