MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / btck_chainstate_manager_process_block

Function btck_chainstate_manager_process_block

src/kernel/bitcoinkernel.cpp:1338–1349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336}
1337
1338int btck_chainstate_manager_process_block(
1339 btck_ChainstateManager* chainman,
1340 const btck_Block* block,
1341 int* _new_block)
1342{
1343 bool new_block;
1344 auto result = btck_ChainstateManager::get(chainman).m_chainman->ProcessNewBlock(btck_Block::get(block), /*force_processing=*/true, /*min_pow_checked=*/true, /*new_block=*/&new_block);
1345 if (_new_block) {
1346 *_new_block = new_block ? 1 : 0;
1347 }
1348 return result ? 0 : -1;
1349}
1350
1351btck_BlockValidationState* btck_chainstate_manager_process_block_header(
1352 btck_ChainstateManager* chainstate_manager,

Callers 1

ProcessBlockMethod · 0.85

Calls 2

getFunction · 0.85
ProcessNewBlockMethod · 0.80

Tested by

no test coverage detected