File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ class ChainImpl : public Chain
248
248
CAmount maxTxFee () override { return ::maxTxFee; }
249
249
bool getPruneMode () override { return ::fPruneMode ; }
250
250
bool p2pEnabled () override { return g_connman != nullptr ; }
251
+ bool isInitialBlockDownload () override { return IsInitialBlockDownload (); }
251
252
int64_t getAdjustedTime () override { return GetAdjustedTime (); }
252
253
void initMessage (const std::string& message) override { ::uiInterface.InitMessage (message); }
253
254
void initWarning (const std::string& message) override { InitWarning (message); }
Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ class Chain
178
178
// ! Check if p2p enabled.
179
179
virtual bool p2pEnabled () = 0;
180
180
181
+ // Check if in IBD.
182
+ virtual bool isInitialBlockDownload () = 0;
183
+
181
184
// ! Get adjusted time.
182
185
virtual int64_t getAdjustedTime () = 0;
183
186
Original file line number Diff line number Diff line change @@ -3889,7 +3889,7 @@ UniValue sethdseed(const JSONRPCRequest& request)
3889
3889
}.ToString ());
3890
3890
}
3891
3891
3892
- if (IsInitialBlockDownload ()) {
3892
+ if (pwallet-> chain (). isInitialBlockDownload ()) {
3893
3893
throw JSONRPCError (RPC_CLIENT_IN_INITIAL_DOWNLOAD, " Cannot set a new HD seed while still in Initial Block Download" );
3894
3894
}
3895
3895
You can’t perform that action at this time.
0 commit comments