Skip to content

Commit 13e73fb

Browse files
committed
ci: add new test to CI, comment for test
1 parent a567db2 commit 13e73fb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- tests::signer::v0::bitcoind_forking_test
9494
- tests::signer::v0::multiple_miners
9595
- tests::signer::v0::mock_sign_epoch_25
96+
- tests::signer::v0::miner_forking
9697
- tests::nakamoto_integrations::stack_stx_burn_op_integration_test
9798
- tests::nakamoto_integrations::check_block_heights
9899
- tests::nakamoto_integrations::clarity_burn_state

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,16 @@ fn get_nakamoto_headers(config: &Config) -> Vec<StacksHeaderInfo> {
13721372

13731373
#[test]
13741374
#[ignore]
1375+
// Test two nakamoto miners, with the signer set split between them.
1376+
// One of the miners (run-loop-2) is prevented from submitting "good" block commits
1377+
// using the "commit stall" test flag in combination with "block broadcast stalls".
1378+
// (Because RL2 isn't able to RBF their initial commits after the tip is broadcasted).
1379+
// This test works by tracking two different scenarios:
1380+
// 1. RL2 must win a sortition that this block commit behavior would lead to a fork in.
1381+
// 2. After such a sortition, RL1 must win another block.
1382+
// The test asserts that every nakamoto sortition either has a successful tenure, or if
1383+
// RL2 wins and they would be expected to fork, no blocks are produced. The test asserts
1384+
// that every block produced increments the chain length.
13751385
fn miner_forking() {
13761386
if env::var("BITCOIND_TEST") != Ok("1".into()) {
13771387
return;

0 commit comments

Comments
 (0)