diff options
| author | Daniel Kraft <[email protected]> | 2014-08-03 18:12:19 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2014-08-03 18:12:19 +0200 |
| commit | b33bd7a3be1cbcc8d255178307976b7762125b18 (patch) | |
| tree | 7d1af753944e5813f0ef541efb0a28edf5a283e2 /src/rpcserver.h | |
| parent | Merge pull request #4602 (diff) | |
| download | discoin-b33bd7a3be1cbcc8d255178307976b7762125b18.tar.xz discoin-b33bd7a3be1cbcc8d255178307976b7762125b18.zip | |
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.
Diffstat (limited to 'src/rpcserver.h')
| -rw-r--r-- | src/rpcserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h index 31badadd6..176852ca8 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -205,5 +205,6 @@ extern json_spirit::Value getblock(const json_spirit::Array& params, bool fHelp) extern json_spirit::Value gettxoutsetinfo(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value gettxout(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value verifychain(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value getchaintips(const json_spirit::Array& params, bool fHelp); #endif |