mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 61de64df67 into merged_master (Bitcoin PR bitcoin/bitcoin#29724)
This commit is contained in:
commit
2a93e106f2
6 changed files with 172 additions and 97 deletions
|
|
@ -1380,9 +1380,10 @@ util::Result<std::pair<std::vector<FeeFrac>, std::vector<FeeFrac>>> CTxMemPool::
|
|||
// direct_conflicts that is at its own fee/size, along with the replacement
|
||||
// tx/package at its own fee/size
|
||||
|
||||
// old diagram will consist of each element of all_conflicts either at
|
||||
// its own feerate (followed by any descendant at its own feerate) or as a
|
||||
// single chunk at its descendant's ancestor feerate.
|
||||
// old diagram will consist of the ancestors and descendants of each element of
|
||||
// all_conflicts. every such transaction will either be at its own feerate (followed
|
||||
// by any descendant at its own feerate), or as a single chunk at the descendant's
|
||||
// ancestor feerate.
|
||||
|
||||
std::vector<FeeFrac> old_chunks;
|
||||
// Step 1: build the old diagram.
|
||||
|
|
@ -1403,7 +1404,7 @@ util::Result<std::pair<std::vector<FeeFrac>, std::vector<FeeFrac>>> CTxMemPool::
|
|||
// We'll add chunks for either the ancestor by itself and this tx
|
||||
// by itself, or for a combined package.
|
||||
FeeFrac package{txiter->GetModFeesWithAncestors(), static_cast<int32_t>(txiter->GetSizeWithAncestors())};
|
||||
if (individual > package) {
|
||||
if (individual >> package) {
|
||||
// The individual feerate is higher than the package, and
|
||||
// therefore higher than the parent's fee. Chunk these
|
||||
// together.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue