diff options
Diffstat (limited to 'src/interface/node.h')
-rw-r--r-- | src/interface/node.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface/node.h b/src/interface/node.h index 6288487032..880232d9e7 100644 --- a/src/interface/node.h +++ b/src/interface/node.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_INTERFACE_NODE_H #define BITCOIN_INTERFACE_NODE_H +#include <addrdb.h> // For banmap_t #include <init.h> // For HelpMessageMode #include <net.h> // For CConnman::NumConnections #include <netaddress.h> // For Network @@ -87,6 +88,9 @@ public: using NodesStats = std::vector<std::tuple<CNodeStats, bool, CNodeStateStats>>; virtual bool getNodesStats(NodesStats& stats) = 0; + //! Get ban map entries. + virtual bool getBanned(banmap_t& banmap) = 0; + //! Get total bytes recv. virtual int64_t getTotalBytesRecv() = 0; |