aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
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/interfaces
parentdda0b0834faf7be7e8938bf63e7bb01cd54a416a (diff)
rpc: call IsInitialBlockDownload via miner interface
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/mining.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/mining.h b/src/interfaces/mining.h
index 6e47333fd5..b96881f67c 100644
--- a/src/interfaces/mining.h
+++ b/src/interfaces/mining.h
@@ -30,6 +30,9 @@ public:
//! If this chain is exclusively used for testing
virtual bool isTestChain() = 0;
+ //! Returns whether IBD is still in progress.
+ virtual bool isInitialBlockDownload() = 0;
+
//! Returns the hash for the tip of this chain
virtual std::optional<uint256> getTipHash() = 0;