Skip to content

Commit 1c48dae

Browse files
MacroFakeaureleoules
andauthored
test: Use C++11 member initializers for TestMemPoolEntryHelper
Co-authored-by: Aurèle Oulès <[email protected]>
1 parent fad7f22 commit 1c48dae

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/test/util/txmempool.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,13 @@ CTxMemPool::Options MemPoolOptionsForTest(const node::NodeContext& node);
1616
struct TestMemPoolEntryHelper
1717
{
1818
// Default values
19-
CAmount nFee;
20-
int64_t nTime;
21-
unsigned int nHeight;
22-
bool spendsCoinbase;
23-
unsigned int sigOpCost;
19+
CAmount nFee{0};
20+
int64_t nTime{0};
21+
unsigned int nHeight{1};
22+
bool spendsCoinbase{false};
23+
unsigned int sigOpCost{4};
2424
LockPoints lp;
2525

26-
TestMemPoolEntryHelper() :
27-
nFee(0), nTime(0), nHeight(1),
28-
spendsCoinbase(false), sigOpCost(4) { }
29-
3026
CTxMemPoolEntry FromTx(const CMutableTransaction& tx) const;
3127
CTxMemPoolEntry FromTx(const CTransactionRef& tx) const;
3228

0 commit comments

Comments
 (0)