diff options
author | ismaelsadeeq <ask4ismailsadiq@gmail.com> | 2023-11-03 13:23:30 +0100 |
---|---|---|
committer | ismaelsadeeq <ask4ismailsadiq@gmail.com> | 2023-11-22 11:48:21 +0100 |
commit | 91532bd38223d7d04166e05de11d0d0b55e60f13 (patch) | |
tree | 8446e39a5ab8d24f00bef53762302dc675b85f44 /src/test/fuzz/policy_estimator.cpp | |
parent | bfcd401368fc0dc43827a8969a37b7e038d5ca79 (diff) | |
download | bitcoin-91532bd38223d7d04166e05de11d0d0b55e60f13.tar.xz |
tx fees, policy: update `CBlockPolicyEstimator::processBlock` parameter
Update `processBlock` parameter to reference to a vector of `RemovedMempoolTransactionInfo`.
Diffstat (limited to 'src/test/fuzz/policy_estimator.cpp')
-rw-r--r-- | src/test/fuzz/policy_estimator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/fuzz/policy_estimator.cpp b/src/test/fuzz/policy_estimator.cpp index 220799be41..e5e0b0d8da 100644 --- a/src/test/fuzz/policy_estimator.cpp +++ b/src/test/fuzz/policy_estimator.cpp @@ -61,12 +61,12 @@ FUZZ_TARGET(policy_estimator, .init = initialize_policy_estimator) const CTransaction tx{*mtx}; mempool_entries.push_back(ConsumeTxMemPoolEntry(fuzzed_data_provider, tx)); } - std::vector<const CTxMemPoolEntry*> ptrs; - ptrs.reserve(mempool_entries.size()); + std::vector<RemovedMempoolTransactionInfo> txs; + txs.reserve(mempool_entries.size()); for (const CTxMemPoolEntry& mempool_entry : mempool_entries) { - ptrs.push_back(&mempool_entry); + txs.emplace_back(mempool_entry); } - block_policy_estimator.processBlock(fuzzed_data_provider.ConsumeIntegral<unsigned int>(), ptrs); + block_policy_estimator.processBlock(txs, fuzzed_data_provider.ConsumeIntegral<unsigned int>()); }, [&] { (void)block_policy_estimator.removeTx(ConsumeUInt256(fuzzed_data_provider), /*inBlock=*/fuzzed_data_provider.ConsumeBool()); |