Skip to content

Commit 7ddadb4

Browse files
committed
Add allow_reorg_within_first_proposal_burn_block_timing_secs_scenario
Similar to allow_reorg_within_first_proposal_burn_block_timing_secs but ported into the scenario structure. See: moodmosaic@1cb033c https://github.com/stacks-network/madhouse-rs
1 parent e8b21fa commit 7ddadb4

File tree

1 file changed

+34
-0
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+34
-0
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10433,6 +10433,40 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs() {
1043310433
miners.shutdown();
1043410434
}
1043510435

10436+
#[test]
10437+
#[ignore]
10438+
fn allow_reorg_within_first_proposal_burn_block_timing_secs_scenario() {
10439+
if env::var("BITCOIND_TEST") != Ok("1".into()) {
10440+
return;
10441+
}
10442+
10443+
let num_signers = 5;
10444+
let num_transfer_txs = 3;
10445+
10446+
let test_context = Arc::new(SignerTestContext::new(num_signers, num_transfer_txs));
10447+
10448+
scenario![
10449+
test_context,
10450+
SkipCommitOpSecondaryMiner,
10451+
BootToEpoch3,
10452+
SkipCommitOpPrimaryMiner,
10453+
MineBitcoinBlockTenureChangePrimaryMinerCommand,
10454+
SubmitBlockCommitSecondaryMinerCommand,
10455+
StallMiningCommand,
10456+
MineTenureCommand,
10457+
SubmitBlockCommitPrimaryMinerCommand,
10458+
RecoverFromStallCommand,
10459+
WaitForBlockFromMiner2Command,
10460+
MineTenureCommand,
10461+
WaitForBlockFromMiner1Command,
10462+
SubmitBlockCommitPrimaryMinerCommand,
10463+
SendTransferTxCommand,
10464+
WaitForBlockFromMiner1Command,
10465+
MineBitcoinBlockTenureChangePrimaryMinerCommand,
10466+
ShutdownMinersCommand
10467+
]
10468+
}
10469+
1043610470
/// Test a scenario where:
1043710471
/// Two miners boot to Nakamoto.
1043810472
/// Sortition occurs. Miner 1 wins.

0 commit comments

Comments
 (0)