Skip to content

Commit 45fdd1d

Browse files
committed
fix: update test descriptions
1 parent 6de2290 commit 45fdd1d

File tree

1 file changed

+13
-4
lines changed
  • stacks-node/src/tests/signer

1 file changed

+13
-4
lines changed

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11415,6 +11415,11 @@ fn tenure_extend_after_failed_miner() {
1141511415
#[test]
1141611416
#[ignore]
1141711417
/// Test that a miner will extend its tenure after the succeding miner commits to the wrong block.
11418+
///
11419+
/// This test is quite similar to `tenure_extend_after_stale_commit_different_miner`,
11420+
/// with the difference that signers will reject a reorg attempt due to the reorg attempt
11421+
/// being more than `first_proposal_burn_block_timing` seconds.
11422+
///
1141811423
/// - Miner 1 wins a tenure and mines normally
1141911424
/// - Miner 1 wins another tenure and mines normally, but miner 2 does not see any blocks from this tenure
1142011425
/// - Miner 2 wins a tenure and is unable to mine a block
@@ -18861,10 +18866,14 @@ fn signers_treat_signatures_as_precommits() {
1886118866
/// We're verifying that, in this scenario, the tenure is extended,
1886218867
/// instead of a new one being created (and forking the tip).
1886318868
///
18864-
/// - Miner A wins tenure A
18865-
/// - Miner B wins tenure B, with 2 blocks
18866-
/// - Miner A wins tenure C, but with a block commit to tip A
18867-
/// - We verify that Miner B extends Tenure B
18869+
/// This test is quite similar to `tenure_extend_after_bad_commit`, but
18870+
/// with the difference of the fact that there are 2 blocks mined in tenure B,
18871+
/// which means signers will always reject a reorg attempt (regardless of timing).
18872+
///
18873+
/// - Miner 1 wins tenure A
18874+
/// - Miner 2 wins tenure B, with 2 blocks
18875+
/// - Miner 1 wins tenure C, but with a block commit to tip A
18876+
/// - We verify that Miner 1 extends Tenure B
1886818877
fn tenure_extend_after_stale_commit_different_miner() {
1886918878
if env::var("BITCOIND_TEST") != Ok("1".into()) {
1887018879
return;

0 commit comments

Comments
 (0)