CheckEphemeralSpends: return boolean, and set child state and txid outparams

This commit is contained in:
Greg Sanders
2024-11-13 11:19:14 -05:00
parent cf0cee1617
commit ba35a570c5
5 changed files with 101 additions and 41 deletions

View File

@@ -73,9 +73,12 @@ static void MempoolCheckEphemeralSpends(benchmark::Bench& bench)
uint32_t iteration{0};
TxValidationState dummy_state;
Txid dummy_txid;
bench.run([&]() NO_THREAD_SAFETY_ANALYSIS {
CheckEphemeralSpends({tx2_r}, /*dust_relay_rate=*/CFeeRate(iteration * COIN / 10), pool);
CheckEphemeralSpends({tx2_r}, /*dust_relay_rate=*/CFeeRate(iteration * COIN / 10), pool, dummy_state, dummy_txid);
iteration++;
});
}