Skip to content

Commit 1333442

Browse files
committed
Merge pull request #5400
32b93a1 Extra explanation for getchaintips (Pieter Wuille)
2 parents 1863dea + 32b93a1 commit 1333442

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rpcblockchain.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,12 @@ Value getchaintips(const Array& params, bool fHelp)
505505
" \"status\": \"xxxx\" (string) status of the chain (active, valid-fork, valid-headers, headers-only, invalid)\n"
506506
" }\n"
507507
"]\n"
508+
"Possible values for status:\n"
509+
"1. \"invalid\" This branch contains at least one invalid block\n"
510+
"2. \"headers-only\" Not all blocks for this branch are available, but the headers are valid\n"
511+
"3. \"valid-headers\" All blocks are available for this branch, but they were never fully validated\n"
512+
"4. \"valid-fork\" This branch is not part of the active chain, but is fully validated\n"
513+
"5. \"active\" This is the tip of the active main chain, which is certainly valid\n"
508514
"\nExamples:\n"
509515
+ HelpExampleCli("getchaintips", "")
510516
+ HelpExampleRpc("getchaintips", "")

0 commit comments

Comments
 (0)