@@ -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) ]
814814mod 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" ) ;
0 commit comments