mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Implement "getchaintips" RPC command to monitor blockchain forks.
Port over https://github.com/chronokings/huntercoin/pull/19 from Huntercoin: This implements a new RPC command "getchaintips" that can be used to find all currently active chain heads. This is similar to the -printblocktree startup option, but it can be used without restarting just via the RPC interface on a running daemon.
This commit is contained in:
parent
6278bd57c6
commit
b33bd7a3be
6 changed files with 100 additions and 4 deletions
|
|
@ -235,6 +235,7 @@ static const CRPCCommand vRPCCommands[] =
|
|||
{ "getblockcount", &getblockcount, true, false, false },
|
||||
{ "getblock", &getblock, true, false, false },
|
||||
{ "getblockhash", &getblockhash, true, false, false },
|
||||
{ "getchaintips", &getchaintips, true, false, false },
|
||||
{ "getdifficulty", &getdifficulty, true, false, false },
|
||||
{ "getrawmempool", &getrawmempool, true, false, false },
|
||||
{ "gettxout", &gettxout, true, false, false },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue