Skip to content

Commit fa89198

Browse files
author
MarcoFalke
committed
bench: Remove redundant copy constructor in mempool_stress
1 parent 29f8434 commit fa89198

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/bench/mempool_stress.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ struct Available {
2323
size_t vin_left{0};
2424
size_t tx_count;
2525
Available(CTransactionRef& ref, size_t tx_count) : ref(ref), tx_count(tx_count){}
26-
Available& operator=(Available other) {
27-
ref = other.ref;
28-
vin_left = other.vin_left;
29-
tx_count = other.tx_count;
30-
return *this;
31-
}
3226
};
3327

3428
static void ComplexMemPool(benchmark::State& state)
@@ -66,7 +60,7 @@ static void ComplexMemPool(benchmark::State& state)
6660
tx.vin.back().scriptSig = CScript() << coin.tx_count;
6761
tx.vin.back().scriptWitness.stack.push_back(CScriptNum(coin.tx_count).getvch());
6862
}
69-
if (coin.vin_left == coin.ref->vin.size()) {
63+
if (coin.vin_left == coin.ref->vin.size()) {
7064
coin = available_coins.back();
7165
available_coins.pop_back();
7266
}

0 commit comments

Comments
 (0)