From d387b8ec15e553db9b9c370314ee359e981fb374 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Mon, 5 May 2014 13:22:28 +0200 Subject: 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) --- src/net.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index 6210ed80c1..729b1bcd57 100644 --- a/src/net.h +++ b/src/net.h @@ -116,6 +116,13 @@ extern CCriticalSection cs_vAddedNodes; extern NodeId nLastNodeId; extern CCriticalSection cs_nLastNodeId; +struct LocalServiceInfo { + int nScore; + int nPort; +}; + +extern CCriticalSection cs_mapLocalHost; +extern map mapLocalHost; class CNodeStats { -- cgit v1.2.3