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 5149935 commit c6cb6f7Copy full SHA for c6cb6f7
src/main.cpp
@@ -4344,10 +4344,12 @@ bool static AlreadyHave(const CInv& inv) EXCLUSIVE_LOCKS_REQUIRED(cs_main)
4344
recentRejects->reset();
4345
}
4346
4347
+ // Use pcoinsTip->HaveCoinsInCache as a quick approximation to exclude
4348
+ // requesting or processing some txs which have already been included in a block
4349
return recentRejects->contains(inv.hash) ||
4350
mempool.exists(inv.hash) ||
4351
mapOrphanTransactions.count(inv.hash) ||
- pcoinsTip->HaveCoins(inv.hash);
4352
+ pcoinsTip->HaveCoinsInCache(inv.hash);
4353
4354
case MSG_BLOCK:
4355
return mapBlockIndex.count(inv.hash);
0 commit comments