aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2018-07-10 15:48:03 -0400
committerRussell Yanofsky <russ@yanofsky.org>2019-02-22 15:43:02 -0400
commita1df1b48a80bf122efa73677ff72577ec0103a3b (patch)
tree5e086560149e2d871a38d882dcc784f264b103fe /src/interfaces
parent1106a6fde4bfde31a16de45e4cc84ed5da05c5a4 (diff)
downloadbitcoin-a1df1b48a80bf122efa73677ff72577ec0103a3b.tar.xz
Remove use of IsInitialBlockDownload in wallet code
This commit does not change behavior.
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/chain.cpp1
-rw-r--r--src/interfaces/chain.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/chain.cpp b/src/interfaces/chain.cpp
index 725b485e51..fb634e73da 100644
--- a/src/interfaces/chain.cpp
+++ b/src/interfaces/chain.cpp
@@ -248,6 +248,7 @@ public:
CAmount maxTxFee() override { return ::maxTxFee; }
bool getPruneMode() override { return ::fPruneMode; }
bool p2pEnabled() override { return g_connman != nullptr; }
+ bool isInitialBlockDownload() override { return IsInitialBlockDownload(); }
int64_t getAdjustedTime() override { return GetAdjustedTime(); }
void initMessage(const std::string& message) override { ::uiInterface.InitMessage(message); }
void initWarning(const std::string& message) override { InitWarning(message); }
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index 116656fef4..60f8570e36 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -178,6 +178,9 @@ public:
//! Check if p2p enabled.
virtual bool p2pEnabled() = 0;
+ // Check if in IBD.
+ virtual bool isInitialBlockDownload() = 0;
+
//! Get adjusted time.
virtual int64_t getAdjustedTime() = 0;