14
14
#include < core_io.h>
15
15
#include < hash.h>
16
16
#include < index/blockfilterindex.h>
17
- #include < key_io.h>
18
17
#include < policy/feerate.h>
19
18
#include < policy/policy.h>
20
19
#include < policy/rbf.h>
42
41
43
42
#include < boost/thread/thread.hpp> // boost::thread::interrupt
44
43
44
+ #include < condition_variable>
45
45
#include < memory>
46
46
#include < mutex>
47
- #include < condition_variable>
48
47
49
48
struct CUpdatedBlock
50
49
{
@@ -169,7 +168,8 @@ static UniValue getblockcount(const JSONRPCRequest& request)
169
168
if (request.fHelp || request.params .size () != 0 )
170
169
throw std::runtime_error (
171
170
RPCHelpMan{" getblockcount" ,
172
- " \n Returns the number of blocks in the longest blockchain.\n " ,
171
+ " \n Returns the height of the most-work fully-validated chain.\n "
172
+ " The genesis block has height 0.\n " ,
173
173
{},
174
174
RPCResult{
175
175
" n (numeric) The current block count\n "
@@ -189,7 +189,7 @@ static UniValue getbestblockhash(const JSONRPCRequest& request)
189
189
if (request.fHelp || request.params .size () != 0 )
190
190
throw std::runtime_error (
191
191
RPCHelpMan{" getbestblockhash" ,
192
- " \n Returns the hash of the best (tip) block in the longest blockchain .\n " ,
192
+ " \n Returns the hash of the best (tip) block in the most-work fully-validated chain .\n " ,
193
193
{},
194
194
RPCResult{
195
195
" \" hex\" (string) the block hash, hex-encoded\n "
@@ -1305,7 +1305,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
1305
1305
RPCResult{
1306
1306
" {\n "
1307
1307
" \" chain\" : \" xxxx\" , (string) current network name as defined in BIP70 (main, test, regtest)\n "
1308
- " \" blocks\" : xxxxxx, (numeric) the current number of blocks processed in the server \n "
1308
+ " \" blocks\" : xxxxxx, (numeric) the height of the most-work fully-validated chain. The genesis block has height 0 \n "
1309
1309
" \" headers\" : xxxxxx, (numeric) the current number of headers we have validated\n "
1310
1310
" \" bestblockhash\" : \" ...\" , (string) the hash of the currently best block\n "
1311
1311
" \" difficulty\" : xxxxxx, (numeric) the current difficulty\n "
0 commit comments