Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 1,271 Lines • ▼ Show 20 Lines | return RPCHelpMan{ | ||||
? DEFAULT_CHECKBLOCKS | ? DEFAULT_CHECKBLOCKS | ||||
: request.params[1].get_int()}; | : request.params[1].get_int()}; | ||||
ChainstateManager &chainman = EnsureAnyChainman(request.context); | ChainstateManager &chainman = EnsureAnyChainman(request.context); | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
Chainstate &active_chainstate = chainman.ActiveChainstate(); | Chainstate &active_chainstate = chainman.ActiveChainstate(); | ||||
return CVerifyDB().VerifyDB( | return CVerifyDB().VerifyDB( | ||||
active_chainstate, config, active_chainstate.CoinsTip(), | active_chainstate, active_chainstate.CoinsTip(), | ||||
check_level, check_depth) == VerifyDBResult::SUCCESS; | check_level, check_depth) == VerifyDBResult::SUCCESS; | ||||
}, | }, | ||||
}; | }; | ||||
} | } | ||||
RPCHelpMan getblockchaininfo() { | RPCHelpMan getblockchaininfo() { | ||||
return RPCHelpMan{ | return RPCHelpMan{ | ||||
"getblockchaininfo", | "getblockchaininfo", | ||||
▲ Show 20 Lines • Show All 1,465 Lines • Show Last 20 Lines |