Skip to content

Commit f12961e

Browse files
committed
Rename pre_nakamoto_miner_messaging to pre_nakamoto_mock_signing
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 22ea256 commit f12961e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

testnet/stacks-node/src/config.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,8 +2332,8 @@ pub struct MinerConfig {
23322332
pub max_reorg_depth: u64,
23332333
/// Amount of time while mining in nakamoto to wait for signers to respond to a proposed block
23342334
pub wait_on_signers: Duration,
2335-
/// Whether to send miner messages in Epoch 2.5 through the .miners contract. This is used for testing.
2336-
pub pre_nakamoto_miner_messaging: bool,
2335+
/// Whether to mock sign in Epoch 2.5 through the .miners and .signers contracts. This is used for testing purposes in Epoch 2.5 only.
2336+
pub pre_nakamoto_mock_signing: bool,
23372337
}
23382338

23392339
impl Default for MinerConfig {
@@ -2364,7 +2364,7 @@ impl Default for MinerConfig {
23642364
max_reorg_depth: 3,
23652365
// TODO: update to a sane value based on stackerdb benchmarking
23662366
wait_on_signers: Duration::from_secs(200),
2367-
pre_nakamoto_miner_messaging: true,
2367+
pre_nakamoto_mock_signing: true,
23682368
}
23692369
}
23702370
}
@@ -2696,7 +2696,7 @@ pub struct MinerConfigFile {
26962696
pub filter_origins: Option<String>,
26972697
pub max_reorg_depth: Option<u64>,
26982698
pub wait_on_signers_ms: Option<u64>,
2699-
pub pre_nakamoto_miner_messaging: Option<bool>,
2699+
pub pre_nakamoto_mock_signing: Option<bool>,
27002700
}
27012701

27022702
impl MinerConfigFile {
@@ -2799,7 +2799,7 @@ impl MinerConfigFile {
27992799
.wait_on_signers_ms
28002800
.map(Duration::from_millis)
28012801
.unwrap_or(miner_default_config.wait_on_signers),
2802-
pre_nakamoto_miner_messaging: self.pre_nakamoto_miner_messaging.unwrap_or(true),
2802+
pre_nakamoto_mock_signing: self.pre_nakamoto_mock_signing.unwrap_or(true),
28032803
})
28042804
}
28052805
}

testnet/stacks-node/src/neon_node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,8 +2362,8 @@ impl BlockMinerThread {
23622362
/// Read any mock signatures from stackerdb and respond to them
23632363
pub fn send_mock_miner_messages(&mut self) -> Result<(), ChainstateError> {
23642364
let miner_config = self.config.get_miner_config();
2365-
if !miner_config.pre_nakamoto_miner_messaging {
2366-
debug!("Pre-Nakamoto mock miner messaging is disabled");
2365+
if !miner_config.pre_nakamoto_mock_signing {
2366+
debug!("Pre-Nakamoto mock signing is disabled");
23672367
return Ok(());
23682368
}
23692369

0 commit comments

Comments
 (0)