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