RPC: add getbestblockhash, to return tip of best chain

This commit is contained in:
Jeff Garzik
2013-07-03 11:02:29 -04:00
parent 6e802ac85d
commit 091aa8dae9
3 changed files with 11 additions and 0 deletions

View File

@@ -195,6 +195,7 @@ static const CRPCCommand vRPCCommands[] =
{ "help", &help, true, true },
{ "stop", &stop, true, true },
{ "getblockcount", &getblockcount, true, false },
{ "getbestblockhash", &getbestblockhash, true, false },
{ "getconnectioncount", &getconnectioncount, true, false },
{ "getpeerinfo", &getpeerinfo, true, false },
{ "addnode", &addnode, true, true },