diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2024-06-18 21:07:51 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2024-06-18 21:07:51 +0200 |
commit | a9716c53f05082d6d89ebea51a46d4404efb12d7 (patch) | |
tree | 37be64fee93d82fa4b095e466ee98e5fb53dea15 /src/node | |
parent | dda0b0834faf7be7e8938bf63e7bb01cd54a416a (diff) |
rpc: call IsInitialBlockDownload via miner interface
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/interfaces.cpp | 5 |
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); |