mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge bitcoin/bitcoin#23416: doc: Remove fee delta TODO from txmempool.cpp
fa32cc0682a0aa3420e6a11031721fcb6c50fa44 doc: Remove fee delta TODO from txmempool.cpp (MarcoFalke)
Pull request description:
This refactor request was added in commit eb306664e7
, though it didn't explain why the refactor is needed and what the goal is. Given that this wasn't touched for more than 5 years, it doesn't seem critical. Generally, non-trivial `TODO`s make more sense as GitHub issues, so that they can be discussed and triaged more easily.
ACKs for top commit:
laanwj:
Code review ACK fa32cc0682a0aa3420e6a11031721fcb6c50fa44
Tree-SHA512: 6629fef543e815136c82c38aa8ba2c4de68a5fe94c6954f2559e468f7e59052e02dd7c221d3b159be0314eaf0dbb18f74814297c58f76e2289c47e8d4f49be4e
This commit is contained in:
parent
6e7b402fe9
commit
bbcb2d3998
@ -366,8 +366,6 @@ void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, setEntries &setAnces
|
|||||||
mapLinks.insert(make_pair(newit, TxLinks()));
|
mapLinks.insert(make_pair(newit, TxLinks()));
|
||||||
|
|
||||||
// Update transaction for any feeDelta created by PrioritiseTransaction
|
// Update transaction for any feeDelta created by PrioritiseTransaction
|
||||||
// TODO: refactor so that the fee delta is calculated before inserting
|
|
||||||
// into mapTx.
|
|
||||||
CAmount delta{0};
|
CAmount delta{0};
|
||||||
ApplyDelta(entry.GetTx().GetHash(), delta);
|
ApplyDelta(entry.GetTx().GetHash(), delta);
|
||||||
if (delta) {
|
if (delta) {
|
||||||
|
Loading…
Reference in New Issue
Block a user