diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-05 13:22:28 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-05-06 09:34:54 +0200 |
commit | d387b8ec15e553db9b9c370314ee359e981fb374 (patch) | |
tree | 9d1b3a161e60aff59f00ee0e9ad1fcc75ccd5056 /src/rpcserver.h | |
parent | d4ffe4e425b5a3f6fe4ff0ce7297608dfe6c7417 (diff) |
rpc: add `getblockchaininfo` and `getnetworkinfo`
Adds two new info query commands that take over information from
hodge-podge `getinfo`.
Also some new information is added:
- `getblockchaininfo`
- `chain`: (string) current chain (main, testnet3, regtest)
- `verificationprogress: (numeric) estimated verification progress
- `chainwork`
- `getnetworkinfo`
- `localaddresses`: (array) local addresses, from mapLocalHost (fixes #1734)
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 ea03c09bf6..1092c691be 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -164,6 +164,8 @@ extern json_spirit::Value encryptwallet(const json_spirit::Array& params, bool f extern json_spirit::Value validateaddress(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getinfo(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getwalletinfo(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value getblockchaininfo(const json_spirit::Array& params, bool fHelp); +extern json_spirit::Value getnetworkinfo(const json_spirit::Array& params, bool fHelp); extern json_spirit::Value getrawtransaction(const json_spirit::Array& params, bool fHelp); // in rcprawtransaction.cpp extern json_spirit::Value listunspent(const json_spirit::Array& params, bool fHelp); |