aboutsummaryrefslogtreecommitdiff
path: root/src/test/policyestimator_tests.cpp
diff options
context:
space:
mode:
authorismaelsadeeq <ask4ismailsadiq@gmail.com>2023-12-06 14:56:23 +0100
committerismaelsadeeq <ask4ismailsadiq@gmail.com>2024-01-02 12:41:01 +0100
commit5615e16b705d74bf6ebb7c39523844f97a41cb6f (patch)
tree67e83673d93dffadd3e4eb7a2c83ca2fc3f37627 /src/test/policyestimator_tests.cpp
parentfcd429664818f14cace580513e7e6159335b5416 (diff)
downloadbitcoin-5615e16b705d74bf6ebb7c39523844f97a41cb6f.tar.xz
tx fees: update `m_from_disconnected_block` to `m_mempool_limit_bypassed`
The boolean indicates whether the transaction was added without enforcing mempool fee limits. m_mempool_limit_bypassed is the correct variable name. Also changes NewMempoolTransactionInfo booleans descriptions to the format that is consistent with the codebase.
Diffstat (limited to 'src/test/policyestimator_tests.cpp')
-rw-r--r--src/test/policyestimator_tests.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/test/policyestimator_tests.cpp b/src/test/policyestimator_tests.cpp
index 75cdfb90dc..ede73c6895 100644
--- a/src/test/policyestimator_tests.cpp
+++ b/src/test/policyestimator_tests.cpp
@@ -70,10 +70,10 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
feeV[j],
virtual_size,
entry.nHeight,
- /* m_from_disconnected_block */ false,
- /* m_submitted_in_package */ false,
- /* m_chainstate_is_current */ true,
- /* m_has_no_mempool_parents */ true)};
+ /*mempool_limit_bypassed=*/false,
+ /*submitted_in_package=*/false,
+ /*chainstate_is_current=*/true,
+ /*has_no_mempool_parents=*/true)};
GetMainSignals().TransactionAddedToMempool(tx_info, mpool.GetAndIncrementSequence());
}
uint256 hash = tx.GetHash();
@@ -171,10 +171,10 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
feeV[j],
virtual_size,
entry.nHeight,
- /* m_from_disconnected_block */ false,
- /* m_submitted_in_package */ false,
- /* m_chainstate_is_current */ true,
- /* m_has_no_mempool_parents */ true)};
+ /*mempool_limit_bypassed=*/false,
+ /*submitted_in_package=*/false,
+ /*chainstate_is_current=*/true,
+ /*has_no_mempool_parents=*/true)};
GetMainSignals().TransactionAddedToMempool(tx_info, mpool.GetAndIncrementSequence());
}
uint256 hash = tx.GetHash();
@@ -235,10 +235,10 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates)
feeV[j],
virtual_size,
entry.nHeight,
- /* m_from_disconnected_block */ false,
- /* m_submitted_in_package */ false,
- /* m_chainstate_is_current */ true,
- /* m_has_no_mempool_parents */ true)};
+ /*mempool_limit_bypassed=*/false,
+ /*submitted_in_package=*/false,
+ /*chainstate_is_current=*/true,
+ /*has_no_mempool_parents=*/true)};
GetMainSignals().TransactionAddedToMempool(tx_info, mpool.GetAndIncrementSequence());
}
uint256 hash = tx.GetHash();