Skip to content

Commit 3fc72f4

Browse files
committed
RPC: Properly document all example return fields in getchaintips
1 parent b5404b5 commit 3fc72f4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/rpc/blockchain.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,12 @@ UniValue getchaintips(const JSONRPCRequest& request)
10651065
" \"status\": \"active\" (string) \"active\" for the main chain\n"
10661066
" },\n"
10671067
" {\n"
1068-
" \"height\": xxxx,\n"
1069-
" \"hash\": \"xxxx\",\n"
1070-
" \"branchlen\": 1 (numeric) length of branch connecting the tip to the main chain\n"
1071-
" \"status\": \"xxxx\" (string) status of the chain (active, valid-fork, valid-headers, headers-only, invalid)\n"
1068+
" \"height\": n, (numeric) height of the chain tip\n"
1069+
" \"hash\": \"hash\", (string) block hash of the tip\n"
1070+
" \"branchlen\": n, (numeric) length of branch connecting the tip to the main chain\n"
1071+
" \"status\": \"xxxx\" (string) status of the chain (active, valid-fork, valid-headers, headers-only, invalid)\n"
10721072
" }\n"
1073+
" ,...\n"
10731074
"]\n"
10741075

10751076
"Possible values for status:\n"

0 commit comments

Comments
 (0)