Skip to content

Commit 003d7a2

Browse files
committed
feat: avoid clearing caches when block is successfully mined
1 parent cd9bbab commit 003d7a2

File tree

1 file changed

+3
-0
lines changed
  • testnet/stacks-node/src/nakamoto_node

1 file changed

+3
-0
lines changed

testnet/stacks-node/src/nakamoto_node/miner.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ impl BlockMinerThread {
643643
"block_height" => new_block.header.chain_length,
644644
"consensus_hash" => %new_block.header.consensus_hash,
645645
);
646+
647+
// We successfully mined, so the mempool caches are valid.
648+
self.reset_nonce_cache = false;
646649
}
647650

648651
// update mined-block counters and mined-tenure counters

0 commit comments

Comments
 (0)