mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-17 05:30:43 +02:00
FIX: Account for txs already added to block in addPriorityTxs
This commit is contained in:
parent
4dc94d1036
commit
a278764748
@ -262,6 +262,11 @@ void BlockAssembler::addScoreTxs()
|
|||||||
clearedTxs.pop();
|
clearedTxs.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If tx already in block, skip (added by addPriorityTxs)
|
||||||
|
if (inBlock.count(iter)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// If tx is dependent on other mempool txs which haven't yet been included
|
// If tx is dependent on other mempool txs which haven't yet been included
|
||||||
// then put it in the waitSet
|
// then put it in the waitSet
|
||||||
if (isStillDependent(iter)) {
|
if (isStillDependent(iter)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user