Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.h
Show First 20 Lines • Show All 123 Lines • ▼ Show 20 Lines | struct TestMemPoolEntryHelper { | ||||
LockPoints lp; | LockPoints lp; | ||||
TestMemPoolEntryHelper() | TestMemPoolEntryHelper() | ||||
: nFee(), nTime(0), dPriority(0.0), nHeight(1), spendsCoinbase(false), | : nFee(), nTime(0), dPriority(0.0), nHeight(1), spendsCoinbase(false), | ||||
sigOpCost(4) {} | sigOpCost(4) {} | ||||
CTxMemPoolEntry FromTx(const CMutableTransaction &tx, | CTxMemPoolEntry FromTx(const CMutableTransaction &tx, | ||||
CTxMemPool *pool = nullptr); | CTxMemPool *pool = nullptr); | ||||
CTxMemPoolEntry FromTx(const CTransaction &tx, CTxMemPool *pool = nullptr); | CTxMemPoolEntry FromTx(const CTransactionRef &tx, | ||||
CTxMemPool *pool = nullptr); | |||||
// Change the default value | // Change the default value | ||||
TestMemPoolEntryHelper &Fee(Amount _fee) { | TestMemPoolEntryHelper &Fee(Amount _fee) { | ||||
nFee = _fee; | nFee = _fee; | ||||
return *this; | return *this; | ||||
} | } | ||||
TestMemPoolEntryHelper &Time(int64_t _time) { | TestMemPoolEntryHelper &Time(int64_t _time) { | ||||
nTime = _time; | nTime = _time; | ||||
Show All 20 Lines |