diff options
author | kevkevin <oapallikunnel@gmail.com> | 2023-11-06 20:12:13 -0600 |
---|---|---|
committer | kevkevin <oapallikunnel@gmail.com> | 2023-11-07 08:56:36 -0600 |
commit | 43423fd834df03c2eb88fd5d7007487816865bd6 (patch) | |
tree | eedfe8cb0a695742fd160203fb68c4be0802759d /src/node | |
parent | 0387ca0774be0fa05a81cb91f880c53a7ad5fade (diff) | |
download | bitcoin-43423fd834df03c2eb88fd5d7007487816865bd6.tar.xz |
[refactor] Change MiniMinerMempoolEntry order
Changes MiniMinerMempoolEntry order to match the order of the params
elsewhere in the codebase
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/mini_miner.cpp | 6 | ||||
-rw-r--r-- | src/node/mini_miner.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/node/mini_miner.cpp b/src/node/mini_miner.cpp index 3d24a3f58e..e3b3746c6d 100644 --- a/src/node/mini_miner.cpp +++ b/src/node/mini_miner.cpp @@ -78,11 +78,11 @@ MiniMiner::MiniMiner(const CTxMemPool& mempool, const std::vector<COutPoint>& ou for (const auto& txiter : cluster) { if (!m_to_be_replaced.count(txiter->GetTx().GetHash())) { auto [mapiter, success] = m_entries_by_txid.emplace(txiter->GetTx().GetHash(), - MiniMinerMempoolEntry{/*fee_self=*/txiter->GetModifiedFee(), - /*fee_ancestor=*/txiter->GetModFeesWithAncestors(), + MiniMinerMempoolEntry{/*tx_in=*/txiter->GetSharedTx(), /*vsize_self=*/txiter->GetTxSize(), /*vsize_ancestor=*/txiter->GetSizeWithAncestors(), - /*tx_in=*/txiter->GetSharedTx()}); + /*fee_self=*/txiter->GetModifiedFee(), + /*fee_ancestor=*/txiter->GetModFeesWithAncestors()}); m_entries.push_back(mapiter); } else { auto outpoints_it = m_requested_outpoints_by_txid.find(txiter->GetTx().GetHash()); diff --git a/src/node/mini_miner.h b/src/node/mini_miner.h index 8f86709ae4..67d40b2cce 100644 --- a/src/node/mini_miner.h +++ b/src/node/mini_miner.h @@ -34,11 +34,11 @@ class MiniMinerMempoolEntry // methods can be called without holding that lock. public: - explicit MiniMinerMempoolEntry(CAmount fee_self, - CAmount fee_ancestor, + explicit MiniMinerMempoolEntry(const CTransactionRef& tx_in, int64_t vsize_self, int64_t vsize_ancestor, - const CTransactionRef& tx_in): + CAmount fee_self, + CAmount fee_ancestor): tx{tx_in}, vsize_individual{vsize_self}, vsize_with_ancestors{vsize_ancestor}, |