diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-04-17 15:57:19 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | e0b66a3b7c5d3a079636d61fcf611bb6b36c7bc1 (patch) | |
tree | 4115ee48eb6dd0689d22a9029b27ecfffcdb8873 /src/interface/node.h | |
parent | d7c2c9594897c39df6739b92610dfb5a7a1cb3ec (diff) | |
download | bitcoin-e0b66a3b7c5d3a079636d61fcf611bb6b36c7bc1.tar.xz |
Remove direct bitcoin calls from qt/peertablemodel.cpp
Diffstat (limited to 'src/interface/node.h')
-rw-r--r-- | src/interface/node.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/interface/node.h b/src/interface/node.h index 5275030ca1..6288487032 100644 --- a/src/interface/node.h +++ b/src/interface/node.h @@ -14,8 +14,12 @@ #include <stddef.h> #include <stdint.h> #include <string> +#include <tuple> +#include <vector> +class CNodeStats; class proxyType; +struct CNodeStateStats; namespace interface { @@ -79,6 +83,10 @@ public: //! Get number of connections. virtual size_t getNodeCount(CConnman::NumConnections flags) = 0; + //! Get stats for connected nodes. + using NodesStats = std::vector<std::tuple<CNodeStats, bool, CNodeStateStats>>; + virtual bool getNodesStats(NodesStats& stats) = 0; + //! Get total bytes recv. virtual int64_t getTotalBytesRecv() = 0; |