Changeset View
Changeset View
Standalone View
Standalone View
src/test/blockfilter_index_tests.cpp
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | static bool BuildChain(const CBlockIndex *pindex, | ||||
std::vector<CMutableTransaction> no_txns; | std::vector<CMutableTransaction> no_txns; | ||||
chain.resize(length); | chain.resize(length); | ||||
for (auto &block : chain) { | for (auto &block : chain) { | ||||
block = std::make_shared<CBlock>( | block = std::make_shared<CBlock>( | ||||
CreateBlock(pindex, no_txns, coinbase_script_pub_key, mempool)); | CreateBlock(pindex, no_txns, coinbase_script_pub_key, mempool)); | ||||
CBlockHeader header = block->GetBlockHeader(); | CBlockHeader header = block->GetBlockHeader(); | ||||
CValidationState state; | BlockValidationState state; | ||||
if (!ProcessNewBlockHeaders(GetConfig(), {header}, state, &pindex)) { | if (!ProcessNewBlockHeaders(GetConfig(), {header}, state, &pindex)) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |