Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.cpp
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | CBlock TestChain100Setup::CreateAndProcessBlock( | ||||
if (!chainstate) { | if (!chainstate) { | ||||
chainstate = &Assert(m_node.chainman)->ActiveChainstate(); | chainstate = &Assert(m_node.chainman)->ActiveChainstate(); | ||||
} | } | ||||
const CBlock block = this->CreateBlock(txns, scriptPubKey, *chainstate); | const CBlock block = this->CreateBlock(txns, scriptPubKey, *chainstate); | ||||
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); | ||||
Assert(m_node.chainman) | Assert(m_node.chainman) | ||||
->ProcessNewBlock(GetConfig(), shared_pblock, true, true, nullptr); | ->ProcessNewBlock(shared_pblock, true, true, nullptr); | ||||
return block; | return block; | ||||
} | } | ||||
CMutableTransaction TestChain100Setup::CreateValidMempoolTransaction( | CMutableTransaction TestChain100Setup::CreateValidMempoolTransaction( | ||||
CTransactionRef input_transaction, int input_vout, int input_height, | CTransactionRef input_transaction, int input_vout, int input_height, | ||||
CKey input_signing_key, CScript output_destination, Amount output_amount, | CKey input_signing_key, CScript output_destination, Amount output_amount, | ||||
bool submit) { | bool submit) { | ||||
▲ Show 20 Lines • Show All 223 Lines • Show Last 20 Lines |