File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
testnet/stacks-node/src/tests/signer Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5316,7 +5316,19 @@ fn signing_in_0th_tenure_of_reward_cycle() {
5316
5316
} )
5317
5317
. unwrap ( ) ;
5318
5318
5319
- for signer in & signer_public_keys {
5319
+ let block_mined = test_observer:: get_mined_nakamoto_blocks ( )
5320
+ . last ( )
5321
+ . unwrap ( )
5322
+ . clone ( ) ;
5323
+ // Must ensure that the signers that signed the block have their blocks_signed updated appropriately
5324
+ for signature in & block_mined. signer_signature {
5325
+ let signer = signer_public_keys
5326
+ . iter ( )
5327
+ . find ( |pk| {
5328
+ pk. verify ( block_mined. signer_signature_hash . as_bytes ( ) , signature)
5329
+ . unwrap ( )
5330
+ } )
5331
+ . expect ( "Unknown signer signature" ) ;
5320
5332
let blocks_signed = get_v3_signer ( & signer, next_reward_cycle) ;
5321
5333
assert_eq ! ( blocks_signed, 1 ) ;
5322
5334
}
You can’t perform that action at this time.
0 commit comments