Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show First 20 Lines • Show All 192 Lines • ▼ Show 20 Lines | CBlock TestChain100Setup::CreateAndProcessBlock( | ||||
} | } | ||||
while (!CheckProofOfWork(block.GetHash(), block.nBits, config)) { | while (!CheckProofOfWork(block.GetHash(), block.nBits, config)) { | ||||
++block.nNonce; | ++block.nNonce; | ||||
} | } | ||||
std::shared_ptr<const CBlock> shared_pblock = | std::shared_ptr<const CBlock> shared_pblock = | ||||
std::make_shared<const CBlock>(block); | std::make_shared<const CBlock>(block); | ||||
ProcessNewBlock(GetConfig(), 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, | ||||
Show All 14 Lines |