File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1162,6 +1162,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
1162
1162
" }\n "
1163
1163
" }\n "
1164
1164
" }\n "
1165
+ " \" warnings\" : \" ...\" , (string) any network and blockchain errors.\n "
1165
1166
" }\n "
1166
1167
" \n Examples:\n "
1167
1168
+ HelpExampleCli (" getblockchaininfo" , " " )
@@ -1201,6 +1202,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
1201
1202
1202
1203
obj.push_back (Pair (" pruneheight" , block->nHeight ));
1203
1204
}
1205
+ obj.push_back (Pair (" warnings" , GetWarnings (" statusbar" )));
1204
1206
return obj;
1205
1207
}
1206
1208
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ def _test_getblockchaininfo(self):
60
60
'pruned' ,
61
61
'softforks' ,
62
62
'verificationprogress' ,
63
+ 'warnings' ,
63
64
]
64
65
res = self .nodes [0 ].getblockchaininfo ()
65
66
# result should have pruneheight and default keys if pruning is enabled
You can’t perform that action at this time.
0 commit comments