| 1015 | } |
| 1016 | |
| 1017 | bool checkBlock(const CBlock& block, const node::BlockCheckOptions& options, std::string& reason, std::string& debug) override |
| 1018 | { |
| 1019 | LOCK(chainman().GetMutex()); |
| 1020 | BlockValidationState state{TestBlockValidity(chainman().ActiveChainstate(), block, /*check_pow=*/options.check_pow, /*check_merkle_root=*/options.check_merkle_root)}; |
| 1021 | reason = state.GetRejectReason(); |
| 1022 | debug = state.GetDebugMessage(); |
| 1023 | return state.IsValid(); |
| 1024 | } |
| 1025 | |
| 1026 | bool submitBlock(const CBlock& block_in, std::string& reason, std::string& debug) override |
| 1027 | { |