Skip to content

Commit 2bfa9ab

Browse files
chore: small import fixes and version bump (#57)
1 parent 0d84f8e commit 2bfa9ab

File tree

9 files changed

+7
-14
lines changed

9 files changed

+7
-14
lines changed

dash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dashcore"
3-
version = "0.36.0"
3+
version = "0.36.1"
44
authors = [
55
"Samuel Westrich <sam@dash.org>",
66
"Anton Suprunchuk <anton@dash.org>",

dash/src/blockdata/transaction/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,6 @@ mod tests {
915915
use crate::consensus::encode::{deserialize, serialize};
916916
use crate::internal_macros::hex;
917917
use crate::network::message::{NetworkMessage, RawNetworkMessage};
918-
use crate::network::message_sml::MnListDiff;
919918

920919
#[test]
921920
fn test_is_coinbase() {

dash/src/blockdata/transaction/special_transaction/provider_registration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ mod tests {
269269
use crate::transaction::special_transaction::provider_registration::{
270270
ProviderMasternodeType, ProviderRegistrationPayload,
271271
};
272-
use crate::{OutPoint, PubkeyHash, ScriptBuf, Transaction, Txid};
272+
use crate::{OutPoint, PubkeyHash, ScriptBuf, Txid};
273273

274274
#[cfg(feature = "signer")]
275275
mod signer {

dash/src/network/message_sml.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
use std::io;
2-
31
#[cfg(feature = "bincode")]
42
use bincode::{Decode, Encode};
53

64
use crate::bls_sig_utils::BLSSignature;
7-
use crate::consensus::{Decodable, Encodable, encode};
85
use crate::hash_types::MerkleRootMasternodeList;
96
use crate::internal_macros::impl_consensus_encoding;
107
use crate::sml::llmq_type::LLMQType;

dash/src/sml/masternode_list_engine/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl MasternodeListEngine {
7272
let block_hash = masternode_list_diff.block_hash;
7373
let base_block_hash = masternode_list_diff.base_block_hash;
7474
let masternode_list = masternode_list_diff
75-
.try_into_with_block_hash_lookup(|block_hash| Some(block_height), network)?;
75+
.try_into_with_block_hash_lookup(|_block_hash| Some(block_height), network)?;
7676
Ok(Self {
7777
block_hashes: [(0, base_block_hash), (block_height, block_hash)].into(),
7878
block_heights: [(base_block_hash, 0), (block_hash, block_height)].into(),
@@ -812,9 +812,6 @@ impl MasternodeListEngine {
812812

813813
#[cfg(test)]
814814
mod tests {
815-
816-
use bincode::Decode;
817-
818815
use crate::sml::llmq_entry_verification::LLMQEntryVerificationStatus;
819816
use crate::sml::llmq_type::LLMQType;
820817
use crate::sml::llmq_type::LLMQType::{Llmqtype50_60, Llmqtype400_60, Llmqtype400_85};
@@ -948,7 +945,7 @@ mod tests {
948945
.expect("expected to decode")
949946
.0;
950947

951-
for (cycle_hash, quorums) in mn_list_engine.rotated_quorums_per_cycle.iter() {
948+
for quorums in mn_list_engine.rotated_quorums_per_cycle.values() {
952949
mn_list_engine
953950
.validate_rotation_cycle_quorums(quorums.iter().collect::<Vec<_>>().as_slice())
954951
.expect("expected to validated quorums");

dash/src/sml/message_verification_error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(feature = "bincode")]
12
use bincode::{Decode, Encode};
23
use hashes::sha256d;
34
use thiserror::Error;

dash/src/sml/quorum_entry/qualified_quorum_entry.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#[cfg(feature = "bincode")]
22
use bincode::{Decode, Encode};
3-
use hashes::Hash;
43

54
use crate::hash_types::{QuorumCommitmentHash, QuorumEntryHash};
65
use crate::sml::llmq_entry_verification::{

dash/src/sml/quorum_entry/validation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl QualifiedQuorumEntry {
3636
where
3737
I: IntoIterator<Item = &'a MasternodeListEntry>,
3838
{
39-
let mut message = self.commitment_hash.to_byte_array();
39+
let message = self.commitment_hash.to_byte_array();
4040
let message = message.as_slice();
4141
let public_keys2 = operator_keys
4242
.into_iter()

hashes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dashcore_hashes"
3-
version = "0.15.0"
3+
version = "0.15.1"
44
authors = ["Samuel Westrich <sam@dash.org>"]
55
license = "CC0-1.0"
66
repository = "https://github.com/rust-dashcore/dash_hashes/"

0 commit comments

Comments
 (0)