Allow moving CTxMemPoolEntry objects, disallow copying

This commit is contained in:
Suhas Daftuar
2025-01-09 10:30:12 -05:00
parent 6c73e47448
commit 92b0079fe3
2 changed files with 3 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ FUZZ_TARGET(policy_estimator, .init = initialize_policy_estimator)
break;
}
const CTransaction tx{*mtx};
mempool_entries.emplace_back(CTxMemPoolEntry::ExplicitCopy, ConsumeTxMemPoolEntry(fuzzed_data_provider, tx, current_height));
mempool_entries.push_back(ConsumeTxMemPoolEntry(fuzzed_data_provider, tx, current_height));
}
std::vector<RemovedMempoolTransactionInfo> txs;
txs.reserve(mempool_entries.size());