mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: Use C++11 member initializers for TestMemPoolEntryHelper
Co-authored-by: Aurèle Oulès <aurele@oules.com>
This commit is contained in:
parent
fad7f2239c
commit
1c48dae76f
1 changed files with 5 additions and 9 deletions
|
@ -16,17 +16,13 @@ CTxMemPool::Options MemPoolOptionsForTest(const node::NodeContext& node);
|
|||
struct TestMemPoolEntryHelper
|
||||
{
|
||||
// Default values
|
||||
CAmount nFee;
|
||||
int64_t nTime;
|
||||
unsigned int nHeight;
|
||||
bool spendsCoinbase;
|
||||
unsigned int sigOpCost;
|
||||
CAmount nFee{0};
|
||||
int64_t nTime{0};
|
||||
unsigned int nHeight{1};
|
||||
bool spendsCoinbase{false};
|
||||
unsigned int sigOpCost{4};
|
||||
LockPoints lp;
|
||||
|
||||
TestMemPoolEntryHelper() :
|
||||
nFee(0), nTime(0), nHeight(1),
|
||||
spendsCoinbase(false), sigOpCost(4) { }
|
||||
|
||||
CTxMemPoolEntry FromTx(const CMutableTransaction& tx) const;
|
||||
CTxMemPoolEntry FromTx(const CTransactionRef& tx) const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue