diff options
| author | Pieter Wuille <[email protected]> | 2014-11-19 09:39:42 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-11-26 16:36:25 +0100 |
| commit | 9b0a8d3152b43b63c99878d0223a1681993ad608 (patch) | |
| tree | 33eaad082c1eaf52a331a57e027d7ded4288cc1a /src/rpcserver.h | |
| parent | Merge pull request #5158 (diff) | |
| download | discoin-9b0a8d3152b43b63c99878d0223a1681993ad608.tar.xz discoin-9b0a8d3152b43b63c99878d0223a1681993ad608.zip | |
Add 'invalidateblock' and 'reconsiderblock' RPC commands.
These can be used for testing reorganizations or for manual intervention in case of
chain forks.
Diffstat (limited to 'src/rpcserver.h')
| -rw-r--r-- | src/rpcserver.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h index b0e437057..2b2428445 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -222,6 +222,8 @@ extern json_spirit::Value gettxoutsetinfo(const json_spirit::Array& params, bool 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); +extern json_spirit::Value invalidateblock(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value reconsiderblock(const json_spirit::Array& params, bool fHelp); // in rest.cpp extern bool HTTPReq_REST(AcceptedConnection *conn, |