@@ -5,7 +5,7 @@ use libsigner::v0::messages::RejectReason;
5
5
use madhouse:: { Command , CommandWrapper } ;
6
6
use proptest:: prelude:: { Just , Strategy } ;
7
7
use proptest:: prop_oneof;
8
- use stacks:: chainstate:: stacks:: { TenureChangeCause , TransactionPayload } ;
8
+ use stacks:: chainstate:: stacks:: { TenureChangeCause , TenureChangePayload , TransactionPayload } ;
9
9
10
10
use super :: context:: { SignerTestContext , SignerTestState } ;
11
11
use crate :: tests:: neon_integrations:: get_chain_info;
@@ -290,7 +290,7 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectNakaBlockProposa
290
290
// Handle different expectations after the proposal
291
291
match & self . expectation {
292
292
BlockExpectation :: JustProposal => {
293
- info ! ( "Block proposal received, no further expectations " ) ;
293
+ panic ! ( "To be implemented: BlockExpectation::JustProposal " ) ;
294
294
}
295
295
BlockExpectation :: ExpectRejection ( reason) => {
296
296
info ! ( "Now waiting for block rejection with reason {:?}" , reason) ;
@@ -306,8 +306,7 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectNakaBlockProposa
306
306
info ! ( "Block was rejected with the expected reason: {:?}" , reason) ;
307
307
}
308
308
BlockExpectation :: ExpectAcceptance => {
309
- info ! ( "Now waiting for block acceptance" ) ;
310
- // TODO: Implement waiting for block acceptance/confirmation
309
+ panic ! ( "To be implemented: BlockExpectation::ExpectAcceptance" ) ;
311
310
}
312
311
}
313
312
}
@@ -372,7 +371,10 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectTenureChange {
372
371
let is_tenure_change_block_found = block. txs . len ( ) == 2
373
372
&& matches ! (
374
373
block. txs[ 0 ] . payload,
375
- TransactionPayload :: TenureChange ( ref payload) if payload. cause == TenureChangeCause :: BlockFound
374
+ TransactionPayload :: TenureChange ( TenureChangePayload {
375
+ cause: TenureChangeCause :: BlockFound ,
376
+ ..
377
+ } )
376
378
)
377
379
&& matches ! ( block. txs[ 1 ] . payload, TransactionPayload :: Coinbase ( ..) ) ;
378
380
0 commit comments