diff options
| author | Russell Yanofsky <[email protected]> | 2017-04-17 16:02:44 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-04-04 16:52:40 -0400 |
| commit | 3034a462a5d30144cf0ec801d07f0c8c36d560f3 (patch) | |
| tree | 13e518ccabc2cb1e91aaab1d7edbe0d814f510ec /src/interface/node.cpp | |
| parent | Remove direct bitcoin calls from qt/peertablemodel.cpp (diff) | |
| download | discoin-3034a462a5d30144cf0ec801d07f0c8c36d560f3.tar.xz discoin-3034a462a5d30144cf0ec801d07f0c8c36d560f3.zip | |
Remove direct bitcoin calls from qt/bantablemodel.cpp
Diffstat (limited to 'src/interface/node.cpp')
| -rw-r--r-- | src/interface/node.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interface/node.cpp b/src/interface/node.cpp index 1937fe9d9..740878b67 100644 --- a/src/interface/node.cpp +++ b/src/interface/node.cpp @@ -4,6 +4,7 @@ #include <interface/node.h> +#include <addrdb.h> #include <chain.h> #include <chainparams.h> #include <init.h> @@ -105,6 +106,14 @@ class NodeImpl : public Node } return false; } + bool getBanned(banmap_t& banmap) override + { + if (g_connman) { + g_connman->GetBanned(banmap); + return true; + } + return false; + } int64_t getTotalBytesRecv() override { return g_connman ? g_connman->GetTotalBytesRecv() : 0; } int64_t getTotalBytesSent() override { return g_connman ? g_connman->GetTotalBytesSent() : 0; } size_t getMempoolSize() override { return ::mempool.size(); } |