aboutsummaryrefslogtreecommitdiff
path: root/src/rpcserver.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-11-19 09:39:42 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2014-11-26 16:36:25 +0100
commit9b0a8d3152b43b63c99878d0223a1681993ad608 (patch)
tree33eaad082c1eaf52a331a57e027d7ded4288cc1a /src/rpcserver.h
parent9ff0bc9beb90cf96fb0a9698de22e2bc60fed2f2 (diff)
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h
index b0e437057b..2b2428445d 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,