aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2024-06-18 21:07:51 +0200
committerSjors Provoost <sjors@sprovoost.nl>2024-06-18 21:07:51 +0200
commita9716c53f05082d6d89ebea51a46d4404efb12d7 (patch)
tree37be64fee93d82fa4b095e466ee98e5fb53dea15 /src/rpc
parentdda0b0834faf7be7e8938bf63e7bb01cd54a416a (diff)
rpc: call IsInitialBlockDownload via miner interface
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index 9324ba4a1c..2b93c18965 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -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...");
}
}