@@ -1135,6 +1135,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
1135
1135
" \" difficulty\" : xxxxxx, (numeric) the current difficulty\n "
1136
1136
" \" mediantime\" : xxxxxx, (numeric) median time for the current best block\n "
1137
1137
" \" verificationprogress\" : xxxx, (numeric) estimate of verification progress [0..1]\n "
1138
+ " \" initialblockdownload\" : xxxx, (bool) (debug information) estimate of whether this node is in Initial Block Download mode.\n "
1138
1139
" \" chainwork\" : \" xxxx\" (string) total amount of work in active chain, in hexadecimal\n "
1139
1140
" \" size_on_disk\" : xxxxxx, (numeric) the estimated size of the block and undo files on disk\n "
1140
1141
" \" pruned\" : xx, (boolean) if the blocks are subject to pruning\n "
@@ -1183,6 +1184,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
1183
1184
obj.push_back (Pair (" difficulty" , (double )GetDifficulty ()));
1184
1185
obj.push_back (Pair (" mediantime" , (int64_t )chainActive.Tip ()->GetMedianTimePast ()));
1185
1186
obj.push_back (Pair (" verificationprogress" , GuessVerificationProgress (Params ().TxData (), chainActive.Tip ())));
1187
+ obj.push_back (Pair (" initialblockdownload" , IsInitialBlockDownload ()));
1186
1188
obj.push_back (Pair (" chainwork" , chainActive.Tip ()->nChainWork .GetHex ()));
1187
1189
obj.push_back (Pair (" size_on_disk" , CalculateCurrentUsage ()));
1188
1190
obj.push_back (Pair (" pruned" , fPruneMode ));
0 commit comments