We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a6bb7 commit 75baf49Copy full SHA for 75baf49
testnet/stacks-node/src/nakamoto_node/miner.rs
@@ -411,6 +411,10 @@ impl BlockMinerThread {
411
},
412
)?;
413
414
+ if self.config.get_node_config(false).mock_mining {
415
+ return Ok((reward_set, Vec::new()));
416
+ }
417
+
418
*attempts += 1;
419
let signature = coordinator.begin_sign_v0(
420
new_block,
testnet/stacks-node/src/nakamoto_node/relayer.rs
@@ -412,7 +412,7 @@ impl RelayerThread {
}
let directive = if sn.sortition {
- if won_sortition {
+ if won_sortition || self.config.get_node_config(false).mock_mining {
MinerDirective::BeginTenure {
parent_tenure_start: committed_index_hash,
burnchain_tip: sn,
0 commit comments