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 { | ||||
unsigned int nHeight; | unsigned int nHeight; | ||||
bool spendsCoinbase; | bool spendsCoinbase; | ||||
unsigned int sigOpCost; | unsigned int sigOpCost; | ||||
LockPoints lp; | LockPoints lp; | ||||
TestMemPoolEntryHelper() | TestMemPoolEntryHelper() | ||||
: nFee(), nTime(0), nHeight(1), spendsCoinbase(false), sigOpCost(4) {} | : nFee(), nTime(0), nHeight(1), spendsCoinbase(false), sigOpCost(4) {} | ||||
CTxMemPoolEntry FromTx(const CMutableTransaction &tx, | CTxMemPoolEntry FromTx(const CMutableTransaction &tx); | ||||
CTxMemPool *pool = nullptr); | CTxMemPoolEntry FromTx(const CTransactionRef &tx); | ||||
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 26 Lines |