diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-16 12:06:40 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-06-16 12:06:51 +0200 |
commit | 3f89a534acfe91896555439ed3a754cfd430d202 (patch) | |
tree | 1823230ff9f6df57d1077516821d929420cf02ff /src/net.h | |
parent | 62fcf27bd8d796dbe6726c99e6301c76dc9b02ef (diff) | |
parent | 1a5a4e648873c4cd88b936648ebf2858393e5510 (diff) |
Merge #8113: Rework addnode behaviour
1a5a4e6 Randomize name lookup result in ConnectSocketByName (Pieter Wuille)
f9f5cfc Prevent duplicate connections where one is by name and another by ip (Pieter Wuille)
1111b80 Rework addnode behaviour (Pieter Wuille)
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -823,4 +823,14 @@ public: /** Return a timestamp in the future (in microseconds) for exponentially distributed events. */ int64_t PoissonNextSend(int64_t nNow, int average_interval_seconds); +struct AddedNodeInfo +{ + std::string strAddedNode; + CService resolvedAddress; + bool fConnected; + bool fInbound; +}; + +std::vector<AddedNodeInfo> GetAddedNodeInfo(); + #endif // BITCOIN_NET_H |