Skip to content

Commit fac3d93

Browse files
author
MarcoFalke
committed
fuzz: Speed up *_package_eval fuzz targets a bit
1 parent fa40fd0 commit fac3d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/fuzz/package_eval.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ FUZZ_TARGET(ephemeral_package_eval, .init = initialize_tx_pool)
201201

202202
// All RBF-spendable outpoints outside of the unsubmitted package
203203
std::set<COutPoint> mempool_outpoints;
204-
std::map<COutPoint, CAmount> outpoints_value;
204+
std::unordered_map<COutPoint, CAmount, SaltedOutpointHasher> outpoints_value;
205205
for (const auto& outpoint : g_outpoints_coinbase_init_mature) {
206206
Assert(mempool_outpoints.insert(outpoint).second);
207207
outpoints_value[outpoint] = 50 * COIN;
@@ -356,7 +356,7 @@ FUZZ_TARGET(tx_package_eval, .init = initialize_tx_pool)
356356

357357
// All RBF-spendable outpoints outside of the unsubmitted package
358358
std::set<COutPoint> mempool_outpoints;
359-
std::map<COutPoint, CAmount> outpoints_value;
359+
std::unordered_map<COutPoint, CAmount, SaltedOutpointHasher> outpoints_value;
360360
for (const auto& outpoint : g_outpoints_coinbase_init_mature) {
361361
Assert(mempool_outpoints.insert(outpoint).second);
362362
outpoints_value[outpoint] = 50 * COIN;

0 commit comments

Comments
 (0)