Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Lines | CBlock TestChain100Setup::CreateAndProcessBlock( | ||||
ProcessNewBlock(config, shared_pblock, true, nullptr); | ProcessNewBlock(config, shared_pblock, true, nullptr); | ||||
CBlock result = block; | CBlock result = block; | ||||
return result; | return result; | ||||
} | } | ||||
TestChain100Setup::~TestChain100Setup() {} | TestChain100Setup::~TestChain100Setup() {} | ||||
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CMutableTransaction &tx, | CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CMutableTransaction &tx) { | ||||
CTxMemPool *pool) { | return FromTx(MakeTransactionRef(tx)); | ||||
return FromTx(MakeTransactionRef(tx), pool); | |||||
} | } | ||||
CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransactionRef &tx, | CTxMemPoolEntry TestMemPoolEntryHelper::FromTx(const CTransactionRef &tx) { | ||||
CTxMemPool *pool) { | |||||
return CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, | return CTxMemPoolEntry(tx, nFee, nTime, nHeight, spendsCoinbase, sigOpCost, | ||||
lp); | lp); | ||||
} | } | ||||
/** | /** | ||||
* @returns a real block | * @returns a real block | ||||
* (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 | * (0000000000013b8ab2cd513b0261a14096412195a72a0c4827d229dcc7e0f7af) with 9 | ||||
* txs. | * txs. | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |