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.
2 parents f6e5f66 + 90b22d0 commit 728e4d2Copy full SHA for 728e4d2
testnet/stacks-node/src/neon_node.rs
@@ -1239,14 +1239,13 @@ impl BlockMinerThread {
1239
let index_block_hash =
1240
StacksBlockId::new(&tip.consensus_hash, &tip.anchored_block_hash);
1241
1242
- if !considered.contains(&index_block_hash) {
+ if considered.insert(index_block_hash) {
1243
let burn_height = burn_db
1244
.get_consensus_hash_height(&tip.consensus_hash)
1245
.expect("FATAL: could not query burnchain block height")
1246
.expect("FATAL: no burnchain block height for Stacks tip");
1247
let candidate = TipCandidate::new(tip, burn_height);
1248
candidates.push(candidate);
1249
- considered.insert(index_block_hash);
1250
}
1251
1252
0 commit comments