mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge d1ae96755a into merged_master (Bitcoin PR bitcoin/bitcoin#27890)
This commit is contained in:
commit
f60b1bc9ee
3 changed files with 9 additions and 10 deletions
|
|
@ -377,8 +377,8 @@ void CTxMemPoolEntry::UpdateDescendantState(int32_t modifySize, CAmount modifyFe
|
|||
nSizeWithDescendants += modifySize;
|
||||
assert(nSizeWithDescendants > 0);
|
||||
nModFeesWithDescendants = SaturatingAdd(nModFeesWithDescendants, modifyFee);
|
||||
nCountWithDescendants += uint64_t(modifyCount);
|
||||
assert(int64_t(nCountWithDescendants) > 0);
|
||||
m_count_with_descendants += modifyCount;
|
||||
assert(m_count_with_descendants > 0);
|
||||
}
|
||||
|
||||
void CTxMemPoolEntry::UpdateAncestorState(int32_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps, int64_t discountSize)
|
||||
|
|
@ -386,8 +386,8 @@ void CTxMemPoolEntry::UpdateAncestorState(int32_t modifySize, CAmount modifyFee,
|
|||
nSizeWithAncestors += modifySize;
|
||||
assert(nSizeWithAncestors > 0);
|
||||
nModFeesWithAncestors = SaturatingAdd(nModFeesWithAncestors, modifyFee);
|
||||
nCountWithAncestors += uint64_t(modifyCount);
|
||||
assert(int64_t(nCountWithAncestors) > 0);
|
||||
m_count_with_ancestors += modifyCount;
|
||||
assert(m_count_with_ancestors > 0);
|
||||
nSigOpCostWithAncestors += modifySigOps;
|
||||
assert(int(nSigOpCostWithAncestors) >= 0);
|
||||
discountSizeWithAncestors += discountSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue