diff --git a/Cargo.toml b/Cargo.toml index e8c4461ab..55551fae2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ members = ["dash", "hashes", "internals", "fuzz", "rpc-client", "rpc-json", "rpc resolver = "2" [workspace.package] -version = "0.39.2" +version = "0.39.3" [patch.crates-io.dashcore_hashes] path = "hashes" diff --git a/dash/src/pow.rs b/dash/src/pow.rs index 914e7652d..1a70b195e 100644 --- a/dash/src/pow.rs +++ b/dash/src/pow.rs @@ -7,6 +7,7 @@ //! functions here are designed to be fast, by that we mean it is safe to use them to check headers. //! +#[cfg(feature = "bincode")] use bincode::{Decode, Encode}; use core::fmt::{self, LowerHex, UpperHex}; use core::ops::{Add, Div, Mul, Not, Rem, Shl, Shr, Sub}; @@ -320,7 +321,8 @@ impl Decodable for CompactTarget { /// Big-endian 256 bit integer type. // (high, low): u.0 contains the high bits, u.1 contains the low bits. -#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default, Encode, Decode)] +#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Default)] +#[cfg_attr(feature = "bincode", derive(Encode, Decode))] struct U256(u128, u128); impl U256 { diff --git a/dash/src/sml/masternode_list_engine/mod.rs b/dash/src/sml/masternode_list_engine/mod.rs index 341f0c47c..6efb3c8cf 100644 --- a/dash/src/sml/masternode_list_engine/mod.rs +++ b/dash/src/sml/masternode_list_engine/mod.rs @@ -811,8 +811,11 @@ impl MasternodeListEngine { #[cfg(not(feature = "quorum_validation"))] let rotation_sig = { - let (masternode_list, rotation_sig) = - base_masternode_list.apply_diff(masternode_list_diff.clone(), diff_end_height)?; + let (masternode_list, rotation_sig) = base_masternode_list.apply_diff( + masternode_list_diff.clone(), + diff_end_height, + None, + )?; if verify_quorums { return Err(SmlError::FeatureNotTurnedOn( "quorum validation feature is not turned on".to_string(),