mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 23:07:59 +01:00
bench: Remove redundant copy constructor in mempool_stress
This commit is contained in:
parent
29f8434368
commit
fa8919889f
1 changed files with 1 additions and 7 deletions
|
@ -23,12 +23,6 @@ struct Available {
|
||||||
size_t vin_left{0};
|
size_t vin_left{0};
|
||||||
size_t tx_count;
|
size_t tx_count;
|
||||||
Available(CTransactionRef& ref, size_t tx_count) : ref(ref), tx_count(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)
|
static void ComplexMemPool(benchmark::State& state)
|
||||||
|
|
Loading…
Add table
Reference in a new issue