diff --git a/dash/Cargo.toml b/dash/Cargo.toml index cbb5e11e0..8150f4524 100644 --- a/dash/Cargo.toml +++ b/dash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dashcore" -version = "0.36.0" +version = "0.36.1" authors = [ "Samuel Westrich ", "Anton Suprunchuk ", diff --git a/dash/src/blockdata/transaction/mod.rs b/dash/src/blockdata/transaction/mod.rs index 83720b773..deda80307 100644 --- a/dash/src/blockdata/transaction/mod.rs +++ b/dash/src/blockdata/transaction/mod.rs @@ -915,7 +915,6 @@ mod tests { use crate::consensus::encode::{deserialize, serialize}; use crate::internal_macros::hex; use crate::network::message::{NetworkMessage, RawNetworkMessage}; - use crate::network::message_sml::MnListDiff; #[test] fn test_is_coinbase() { diff --git a/dash/src/blockdata/transaction/special_transaction/provider_registration.rs b/dash/src/blockdata/transaction/special_transaction/provider_registration.rs index ed923e4b4..928b8f9ff 100644 --- a/dash/src/blockdata/transaction/special_transaction/provider_registration.rs +++ b/dash/src/blockdata/transaction/special_transaction/provider_registration.rs @@ -269,7 +269,7 @@ mod tests { use crate::transaction::special_transaction::provider_registration::{ ProviderMasternodeType, ProviderRegistrationPayload, }; - use crate::{OutPoint, PubkeyHash, ScriptBuf, Transaction, Txid}; + use crate::{OutPoint, PubkeyHash, ScriptBuf, Txid}; #[cfg(feature = "signer")] mod signer { diff --git a/dash/src/network/message_sml.rs b/dash/src/network/message_sml.rs index 1638fc4dd..89570e8ea 100644 --- a/dash/src/network/message_sml.rs +++ b/dash/src/network/message_sml.rs @@ -1,10 +1,7 @@ -use std::io; - #[cfg(feature = "bincode")] use bincode::{Decode, Encode}; use crate::bls_sig_utils::BLSSignature; -use crate::consensus::{Decodable, Encodable, encode}; use crate::hash_types::MerkleRootMasternodeList; use crate::internal_macros::impl_consensus_encoding; use crate::sml::llmq_type::LLMQType; diff --git a/dash/src/sml/masternode_list_engine/mod.rs b/dash/src/sml/masternode_list_engine/mod.rs index 47383200f..533d7b019 100644 --- a/dash/src/sml/masternode_list_engine/mod.rs +++ b/dash/src/sml/masternode_list_engine/mod.rs @@ -72,7 +72,7 @@ impl MasternodeListEngine { let block_hash = masternode_list_diff.block_hash; let base_block_hash = masternode_list_diff.base_block_hash; let masternode_list = masternode_list_diff - .try_into_with_block_hash_lookup(|block_hash| Some(block_height), network)?; + .try_into_with_block_hash_lookup(|_block_hash| Some(block_height), network)?; Ok(Self { block_hashes: [(0, base_block_hash), (block_height, block_hash)].into(), block_heights: [(base_block_hash, 0), (block_hash, block_height)].into(), @@ -812,9 +812,6 @@ impl MasternodeListEngine { #[cfg(test)] mod tests { - - use bincode::Decode; - use crate::sml::llmq_entry_verification::LLMQEntryVerificationStatus; use crate::sml::llmq_type::LLMQType; use crate::sml::llmq_type::LLMQType::{Llmqtype50_60, Llmqtype400_60, Llmqtype400_85}; @@ -948,7 +945,7 @@ mod tests { .expect("expected to decode") .0; - for (cycle_hash, quorums) in mn_list_engine.rotated_quorums_per_cycle.iter() { + for quorums in mn_list_engine.rotated_quorums_per_cycle.values() { mn_list_engine .validate_rotation_cycle_quorums(quorums.iter().collect::>().as_slice()) .expect("expected to validated quorums"); diff --git a/dash/src/sml/message_verification_error.rs b/dash/src/sml/message_verification_error.rs index 7027dfc8e..952c67d8e 100644 --- a/dash/src/sml/message_verification_error.rs +++ b/dash/src/sml/message_verification_error.rs @@ -1,3 +1,4 @@ +#[cfg(feature = "bincode")] use bincode::{Decode, Encode}; use hashes::sha256d; use thiserror::Error; diff --git a/dash/src/sml/quorum_entry/qualified_quorum_entry.rs b/dash/src/sml/quorum_entry/qualified_quorum_entry.rs index 1c885b90a..7f7c65a66 100644 --- a/dash/src/sml/quorum_entry/qualified_quorum_entry.rs +++ b/dash/src/sml/quorum_entry/qualified_quorum_entry.rs @@ -1,6 +1,5 @@ #[cfg(feature = "bincode")] use bincode::{Decode, Encode}; -use hashes::Hash; use crate::hash_types::{QuorumCommitmentHash, QuorumEntryHash}; use crate::sml::llmq_entry_verification::{ diff --git a/dash/src/sml/quorum_entry/validation.rs b/dash/src/sml/quorum_entry/validation.rs index 10b2b2033..8bd8e81af 100644 --- a/dash/src/sml/quorum_entry/validation.rs +++ b/dash/src/sml/quorum_entry/validation.rs @@ -36,7 +36,7 @@ impl QualifiedQuorumEntry { where I: IntoIterator, { - let mut message = self.commitment_hash.to_byte_array(); + let message = self.commitment_hash.to_byte_array(); let message = message.as_slice(); let public_keys2 = operator_keys .into_iter() diff --git a/hashes/Cargo.toml b/hashes/Cargo.toml index 43236ff41..71addd6cf 100644 --- a/hashes/Cargo.toml +++ b/hashes/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dashcore_hashes" -version = "0.15.0" +version = "0.15.1" authors = ["Samuel Westrich "] license = "CC0-1.0" repository = "https://github.com/rust-dashcore/dash_hashes/"