| 1336 | } |
| 1337 | |
| 1338 | int 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 | |
| 1351 | btck_BlockValidationState* btck_chainstate_manager_process_block_header( |
| 1352 | btck_ChainstateManager* chainstate_manager, |
no test coverage detected