@@ -10346,10 +10346,6 @@ fn outgoing_signers_ignore_block_proposals() {
10346
10346
let mined_blocks = signer_test. running_nodes . nakamoto_blocks_mined . clone ( ) ;
10347
10347
let blocks_before = mined_blocks. load ( Ordering :: SeqCst ) ;
10348
10348
10349
- let old_signature_hash = test_observer:: get_mined_nakamoto_blocks ( )
10350
- . last ( )
10351
- . unwrap ( )
10352
- . signer_signature_hash ;
10353
10349
test_observer:: clear ( ) ;
10354
10350
10355
10351
info ! ( "------------------------- Test Mine A Valid Block -------------------------" ) ;
@@ -10371,6 +10367,10 @@ fn outgoing_signers_ignore_block_proposals() {
10371
10367
} )
10372
10368
. expect ( "Timed out waiting for a block to be mined" ) ;
10373
10369
10370
+ let new_signature_hash = test_observer:: get_mined_nakamoto_blocks ( )
10371
+ . last ( )
10372
+ . unwrap ( )
10373
+ . signer_signature_hash ;
10374
10374
let blocks_before = mined_blocks. load ( Ordering :: SeqCst ) ;
10375
10375
let mut stackerdb = StackerDB :: new (
10376
10376
& signer_test. running_nodes . conf . node . rpc_bind ,
@@ -10386,7 +10386,7 @@ fn outgoing_signers_ignore_block_proposals() {
10386
10386
. map ( |id| id. 0 )
10387
10387
. collect ( ) ;
10388
10388
10389
- let mut old_signers_ignore_block_proposals = || {
10389
+ let mut old_signers_ignore_block_proposals = |hash | {
10390
10390
let _ = wait_for ( 10 , || {
10391
10391
for slot_id in old_signer_slot_ids. iter ( ) {
10392
10392
let latest_msgs = StackerDB :: get_messages :: < SignerMessage > (
@@ -10398,14 +10398,14 @@ fn outgoing_signers_ignore_block_proposals() {
10398
10398
. expect ( "Failed to get message from stackerdb" ) ;
10399
10399
for msg in latest_msgs. iter ( ) {
10400
10400
if let SignerMessage :: BlockResponse ( response) = msg {
10401
- assert_eq ! ( response. get_signer_signature_hash( ) , old_signature_hash ) ;
10401
+ assert_ne ! ( response. get_signer_signature_hash( ) , hash ) ;
10402
10402
}
10403
10403
}
10404
10404
}
10405
10405
Ok ( false )
10406
10406
} ) ;
10407
10407
} ;
10408
- old_signers_ignore_block_proposals ( ) ;
10408
+ old_signers_ignore_block_proposals ( new_signature_hash ) ;
10409
10409
10410
10410
let proposal_conf = ProposalEvalConfig {
10411
10411
first_proposal_burn_block_timing : Duration :: from_secs ( 0 ) ,
@@ -10434,7 +10434,7 @@ fn outgoing_signers_ignore_block_proposals() {
10434
10434
signer_test
10435
10435
. wait_for_block_rejections ( 30 , & all_signers)
10436
10436
. expect ( "Timed out waiting for block rejections" ) ;
10437
- old_signers_ignore_block_proposals ( ) ;
10437
+ old_signers_ignore_block_proposals ( signer_signature_hash_1 ) ;
10438
10438
test_observer:: clear ( ) ;
10439
10439
10440
10440
// Propose a block to the signers that passes initial checks but will be rejected by the stacks node
@@ -10453,7 +10453,7 @@ fn outgoing_signers_ignore_block_proposals() {
10453
10453
signer_test
10454
10454
. wait_for_block_rejections ( 30 , & all_signers)
10455
10455
. expect ( "Timed out waiting for block rejections" ) ;
10456
- old_signers_ignore_block_proposals ( ) ;
10456
+ old_signers_ignore_block_proposals ( signer_signature_hash_2 ) ;
10457
10457
10458
10458
assert_eq ! ( blocks_before, mined_blocks. load( Ordering :: SeqCst ) ) ;
10459
10459
signer_test. shutdown ( ) ;
0 commit comments