The same was done for another struct in e177fcab3831b6d259da5164cabedcc9e78f6957.
Also, change type of feeDelta from int64_t to CAmount.
The same was done for another struct in e177fcab3831b6d259da5164cabedcc9e78f6957.
Also, change type of feeDelta from int64_t to CAmount.
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
130@@ -131,7 +131,7 @@ class CTxMemPoolEntry
131 std::chrono::seconds GetTime() const { return std::chrono::seconds{nTime}; }
132 unsigned int GetHeight() const { return entryHeight; }
133 int64_t GetSigOpCost() const { return sigOpCost; }
134- int64_t GetModifiedFee() const { return nFee + feeDelta; }
135+ CAmount GetModifiedFee() const { return nFee + feeDelta; }
Also suggesting to add:
0--- a/src/node/miner.h
1+++ b/src/node/miner.h
2@@ -45,7 +45,7 @@ struct CTxMemPoolModifiedEntry {
3 nSigOpCostWithAncestors = entry->GetSigOpCostWithAncestors();
4 }
5
6- int64_t GetModifiedFee() const { return iter->GetModifiedFee(); }
7+ CAmount GetModifiedFee() const { return iter->GetModifiedFee(); }
8 uint64_t GetSizeWithAncestors() const { return nSizeWithAncestors; }
9 CAmount GetModFeesWithAncestors() const { return nModFeesWithAncestors; }
10 size_t GetTxSize() const { return iter->GetTxSize(); }
Feel free to pull https://github.com/MarcoFalke/bitcoin-core/compare/2203-refactor-fee-delta-%F0%9F%94%B6...promag:2203-refactor-fee-delta-%F0%9F%94%B6
https://github.com/promag/bitcoin/commit/b440b03845410c2892f73497f774d29e897caed7 https://github.com/promag/bitcoin/commit/c5cdfe56de13fefb56f90d1af2f7912b0c19f1a6