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.cpp | |
| 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.cpp')
| -rw-r--r-- | src/rpcserver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcserver.cpp b/src/rpcserver.cpp index b03016a50..c53dbe22d 100644 --- a/src/rpcserver.cpp +++ b/src/rpcserver.cpp @@ -270,6 +270,8 @@ static const CRPCCommand vRPCCommands[] = { "blockchain", "gettxout", &gettxout, true, false, false }, { "blockchain", "gettxoutsetinfo", &gettxoutsetinfo, true, false, false }, { "blockchain", "verifychain", &verifychain, true, false, false }, + { "blockchain", "invalidateblock", &invalidateblock, true, true, false }, + { "blockchain", "reconsiderblock", &reconsiderblock, true, true, false }, /* Mining */ { "mining", "getblocktemplate", &getblocktemplate, true, false, false }, |