mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 11:12:50 +01:00
rpc: call IsInitialBlockDownload via miner interface
This commit is contained in:
@@ -735,7 +735,7 @@ static RPCHelpMan getblocktemplate()
|
||||
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, PACKAGE_NAME " is not connected!");
|
||||
}
|
||||
|
||||
if (chainman.IsInitialBlockDownload()) {
|
||||
if (miner.isInitialBlockDownload()) {
|
||||
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, PACKAGE_NAME " is in initial sync and waiting for blocks...");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user