aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-06-16 12:06:40 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-06-16 12:06:51 +0200
commit3f89a534acfe91896555439ed3a754cfd430d202 (patch)
tree1823230ff9f6df57d1077516821d929420cf02ff /src/net.h
parent62fcf27bd8d796dbe6726c99e6301c76dc9b02ef (diff)
parent1a5a4e648873c4cd88b936648ebf2858393e5510 (diff)
downloadbitcoin-3f89a534acfe91896555439ed3a754cfd430d202.tar.xz
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index c7bc849177..67b95fe0e4 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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