Revert "refactor: Simplify extra_txn to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>"

This reverts commit a8203e9412.
This commit is contained in:
Anthony Towns
2025-08-25 15:58:59 +10:00
parent df5a50e5de
commit b9300d8d0a
6 changed files with 24 additions and 19 deletions

View File

@@ -65,7 +65,7 @@ static void BlockEncodingBench(benchmark::Bench& bench, size_t n_pool, size_t n_
LOCK2(cs_main, pool.cs);
std::vector<CTransactionRef> extratxn;
std::vector<std::pair<Wtxid, CTransactionRef>> extratxn;
extratxn.reserve(n_extra);
// bump up the size of txs
@@ -94,7 +94,7 @@ static void BlockEncodingBench(benchmark::Bench& bench, size_t n_pool, size_t n_
AddTx(refs[i], /*fee=*/refs[i]->vout[0].nValue, pool);
}
for (size_t i = n_pool; i < n_pool + n_extra; ++i) {
extratxn.push_back(refs[i]);
extratxn.emplace_back(refs[i]->GetWitnessHash(), refs[i]);
}
BenchCBHAST cmpctblock{rng, 3000};