aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-11-01 18:20:04 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-11-01 18:15:53 -0400
commitfa8919889f3c1bd3e2700ecbb56493e3cd1e25ad (patch)
tree446ade5c4711eed4f52db9e8e3907cc4841d3e34
parent29f84343681831baf02a17d3af566c5c57ecf3c2 (diff)
bench: Remove redundant copy constructor in mempool_stress
-rw-r--r--src/bench/mempool_stress.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/bench/mempool_stress.cpp b/src/bench/mempool_stress.cpp
index a42ffaae62..389e2c096f 100644
--- a/src/bench/mempool_stress.cpp
+++ b/src/bench/mempool_stress.cpp
@@ -23,12 +23,6 @@ struct Available {
size_t vin_left{0};
size_t tx_count;
Available(CTransactionRef& ref, size_t tx_count) : ref(ref), tx_count(tx_count){}
- Available& operator=(Available other) {
- ref = other.ref;
- vin_left = other.vin_left;
- tx_count = other.tx_count;
- return *this;
- }
};
static void ComplexMemPool(benchmark::State& state)
@@ -66,7 +60,7 @@ static void ComplexMemPool(benchmark::State& state)
tx.vin.back().scriptSig = CScript() << coin.tx_count;
tx.vin.back().scriptWitness.stack.push_back(CScriptNum(coin.tx_count).getvch());
}
- if (coin.vin_left == coin.ref->vin.size()) {
+ if (coin.vin_left == coin.ref->vin.size()) {
coin = available_coins.back();
available_coins.pop_back();
}