Skip to content

Commit 6eb7cf0

Browse files
committed
Rename MineTenureCommand to MineBitcoinBlock and update label
This commit addresses #6007 (comment).
1 parent 6979eb1 commit 6eb7cf0

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ pub use commit_ops::{SkipCommitOpPrimaryMiner, SkipCommitOpSecondaryMiner};
2121
pub use mining::MineBitcoinBlockTenureChangePrimaryMinerCommand;
2222
pub use shutdown::ShutdownMinersCommand;
2323
pub use stalling::{RecoverFromStallCommand, StallMiningCommand};
24-
pub use tenure::MineTenureCommand;
24+
pub use tenure::MineBitcoinBlock;
2525
pub use transfer::SendTransferTxCommand;

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use madhouse::{Command, CommandWrapper};
44
use proptest::prelude::Strategy;
55
use std::sync::{Arc, Mutex};
66

7-
pub struct MineTenureCommand {
7+
pub struct MineBitcoinBlock {
88
miners: Arc<Mutex<MultipleMinerTest>>,
99
timeout_secs: u64,
1010
}
1111

12-
impl MineTenureCommand {
12+
impl MineBitcoinBlock {
1313
pub fn new(miners: Arc<Mutex<MultipleMinerTest>>, timeout_secs: u64) -> Self {
1414
Self {
1515
miners,
@@ -18,7 +18,7 @@ impl MineTenureCommand {
1818
}
1919
}
2020

21-
impl Command<SignerTestState, SignerTestContext> for MineTenureCommand {
21+
impl Command<SignerTestState, SignerTestContext> for MineBitcoinBlock {
2222
fn check(&self, _state: &SignerTestState) -> bool {
2323
info!("Checking: Mining tenure. Result: {:?}", true);
2424
true
@@ -47,14 +47,14 @@ impl Command<SignerTestState, SignerTestContext> for MineTenureCommand {
4747
}
4848

4949
fn label(&self) -> String {
50-
"MINE_TENURE".to_string()
50+
"MINE_BITCOIN_BLOCK".to_string()
5151
}
5252

5353
fn build(
5454
ctx: Arc<SignerTestContext>,
5555
) -> impl Strategy<Value = CommandWrapper<SignerTestState, SignerTestContext>> {
5656
(60u64..90u64).prop_map(move |timeout_secs| {
57-
CommandWrapper::new(MineTenureCommand::new(ctx.miners.clone(), timeout_secs))
57+
CommandWrapper::new(MineBitcoinBlock::new(ctx.miners.clone(), timeout_secs))
5858
})
5959
}
6060
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10453,11 +10453,11 @@ fn allow_reorg_within_first_proposal_burn_block_timing_secs_scenario() {
1045310453
MineBitcoinBlockTenureChangePrimaryMinerCommand,
1045410454
SubmitBlockCommitSecondaryMinerCommand,
1045510455
StallMiningCommand,
10456-
MineTenureCommand,
10456+
MineBitcoinBlock,
1045710457
SubmitBlockCommitPrimaryMinerCommand,
1045810458
RecoverFromStallCommand,
1045910459
WaitForBlockFromMiner2Command,
10460-
MineTenureCommand,
10460+
MineBitcoinBlock,
1046110461
WaitForBlockFromMiner1Command,
1046210462
SubmitBlockCommitPrimaryMinerCommand,
1046310463
SendTransferTxCommand,

0 commit comments

Comments
 (0)