aboutsummaryrefslogtreecommitdiff
path: root/src/node
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/node
parentdda0b0834faf7be7e8938bf63e7bb01cd54a416a (diff)
rpc: call IsInitialBlockDownload via miner interface
Diffstat (limited to 'src/node')
-rw-r--r--src/node/interfaces.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp
index 68c1c598cd..e0bab6e22e 100644
--- a/src/node/interfaces.cpp
+++ b/src/node/interfaces.cpp
@@ -847,6 +847,11 @@ public:
return chainman().GetParams().IsTestChain();
}
+ bool isInitialBlockDownload() override
+ {
+ return chainman().IsInitialBlockDownload();
+ }
+
std::optional<uint256> getTipHash() override
{
LOCK(::cs_main);