File tree 1 file changed +7
-3
lines changed
testnet/stacks-node/src/tests 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -7206,7 +7206,9 @@ fn continue_tenure_extend() {
7206
7206
let mut tenure_block_founds = vec ! [ ] ;
7207
7207
let mut transfer_tx_included = false ;
7208
7208
let mut last_block_had_extend = false ;
7209
- for block in test_observer:: get_blocks ( ) {
7209
+ for pair in test_observer:: get_blocks ( ) . windows ( 2 ) {
7210
+ let prev_block = & pair[ 0 ] ;
7211
+ let block = & pair[ 1 ] ;
7210
7212
let mut has_extend = false ;
7211
7213
for tx in block[ "transactions" ] . as_array ( ) . unwrap ( ) {
7212
7214
let raw_tx = tx[ "raw_tx" ] . as_str ( ) . unwrap ( ) ;
@@ -7227,8 +7229,10 @@ fn continue_tenure_extend() {
7227
7229
tenure_extends. push ( parsed) ;
7228
7230
}
7229
7231
TenureChangeCause :: BlockFound => {
7230
- if last_block_had_extend {
7231
- panic ! ( "Expected a Nakamoto block to happen after tenure extend block" ) ;
7232
+ if last_block_had_extend
7233
+ && prev_block[ "transactions" ] . as_array ( ) . unwrap ( ) . len ( ) <= 1
7234
+ {
7235
+ panic ! ( "Expected other transactions to happen after tenure extend" ) ;
7232
7236
}
7233
7237
tenure_block_founds. push ( parsed) ;
7234
7238
}
You can’t perform that action at this time.
0 commit comments