Skip to content

Commit 5fe68db

Browse files
committed
Update block_wait.rs
1 parent f9ee678 commit 5fe68db

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testnet/stacks-node/src/tests/signer/commands/block_wait.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use libsigner::v0::messages::RejectReason;
55
use madhouse::{Command, CommandWrapper};
66
use proptest::prelude::{Just, Strategy};
77
use proptest::prop_oneof;
8-
use stacks::chainstate::stacks::{TenureChangeCause, TransactionPayload};
8+
use stacks::chainstate::stacks::{TenureChangeCause, TenureChangePayload, TransactionPayload};
99

1010
use super::context::{SignerTestContext, SignerTestState};
1111
use crate::tests::neon_integrations::get_chain_info;
@@ -290,7 +290,7 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectNakaBlockProposa
290290
// Handle different expectations after the proposal
291291
match &self.expectation {
292292
BlockExpectation::JustProposal => {
293-
info!("Block proposal received, no further expectations");
293+
panic!("To be implemented: BlockExpectation::JustProposal");
294294
}
295295
BlockExpectation::ExpectRejection(reason) => {
296296
info!("Now waiting for block rejection with reason {:?}", reason);
@@ -306,8 +306,7 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectNakaBlockProposa
306306
info!("Block was rejected with the expected reason: {:?}", reason);
307307
}
308308
BlockExpectation::ExpectAcceptance => {
309-
info!("Now waiting for block acceptance");
310-
// TODO: Implement waiting for block acceptance/confirmation
309+
panic!("To be implemented: BlockExpectation::ExpectAcceptance");
311310
}
312311
}
313312
}
@@ -372,7 +371,10 @@ impl Command<SignerTestState, SignerTestContext> for ChainExpectTenureChange {
372371
let is_tenure_change_block_found = block.txs.len() == 2
373372
&& matches!(
374373
block.txs[0].payload,
375-
TransactionPayload::TenureChange(ref payload) if payload.cause == TenureChangeCause::BlockFound
374+
TransactionPayload::TenureChange(TenureChangePayload {
375+
cause: TenureChangeCause::BlockFound,
376+
..
377+
})
376378
)
377379
&& matches!(block.txs[1].payload, TransactionPayload::Coinbase(..));
378380

0 commit comments

Comments
 (0)