Skip to content

Commit ef94d84

Browse files
committed
bench: remove unnecessary CMTxn constructors
1 parent c5c10fd commit ef94d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bench/mempool_ephemeral_spends.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static void MempoolCheckEphemeralSpends(benchmark::Bench& bench)
4343
}
4444

4545
// Tx with many outputs
46-
CMutableTransaction tx1 = CMutableTransaction();
46+
CMutableTransaction tx1;
4747
tx1.vin.resize(1);
4848
tx1.vout.resize(number_outputs);
4949
for (size_t i = 0; i < tx1.vout.size(); i++) {
@@ -55,7 +55,7 @@ static void MempoolCheckEphemeralSpends(benchmark::Bench& bench)
5555
const auto& parent_txid = tx1.GetHash();
5656

5757
// Spends all outputs of tx1, other details don't matter
58-
CMutableTransaction tx2 = CMutableTransaction();
58+
CMutableTransaction tx2;
5959
tx2.vin.resize(tx1.vout.size());
6060
for (size_t i = 0; i < tx2.vin.size(); i++) {
6161
tx2.vin[0].prevout.hash = parent_txid;

0 commit comments

Comments
 (0)