Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-chainstate.cpp
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | for (std::string line; std::getline(std::cin, line);) { | ||||
found = true; | found = true; | ||||
state = stateIn; | state = stateIn; | ||||
} | } | ||||
}; | }; | ||||
bool new_block; | bool new_block; | ||||
auto sc = std::make_shared<submitblock_StateCatcher>(block.GetHash()); | auto sc = std::make_shared<submitblock_StateCatcher>(block.GetHash()); | ||||
RegisterSharedValidationInterface(sc); | RegisterSharedValidationInterface(sc); | ||||
bool accepted = chainman.ProcessNewBlock(config, blockptr, | bool accepted = chainman.ProcessNewBlock(blockptr, | ||||
/*force_processing=*/true, | /*force_processing=*/true, | ||||
/*min_pow_checked=*/true, | /*min_pow_checked=*/true, | ||||
/*new_block=*/&new_block); | /*new_block=*/&new_block); | ||||
UnregisterSharedValidationInterface(sc); | UnregisterSharedValidationInterface(sc); | ||||
if (!new_block && accepted) { | if (!new_block && accepted) { | ||||
std::cerr << "Duplicate" << std::endl; | std::cerr << "Duplicate" << std::endl; | ||||
break; | break; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |