Skip to content

Commit

Permalink
fixup! Policy: Restore support for mining based on coin-age priority
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Mar 6, 2024
1 parent 484915d commit e39da1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/policy/coin_age_priority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ void BlockAssembler::addPriorityTxs(const CTxMemPool& mempool, int &nPackagesSel
double dPriority = mi->GetPriority(nHeight);
CAmount dummy;
mempool.ApplyDeltas(mi->GetTx().GetHash(), dPriority, dummy);
vecPriority.push_back(TxCoinAgePriority(dPriority, mi));
vecPriority.emplace_back(dPriority, mi);
}
std::make_heap(vecPriority.begin(), vecPriority.end(), pricomparer);

Expand Down

0 comments on commit e39da1b

Please sign in to comment.