aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-06-16 12:06:40 +0200
committerWladimir J. van der Laan <[email protected]>2016-06-16 12:06:51 +0200
commit3f89a534acfe91896555439ed3a754cfd430d202 (patch)
tree1823230ff9f6df57d1077516821d929420cf02ff /src/net.h
parentMerge #8171: [RPC] Fix createrawtx sequence number unsigned int parsing (diff)
parentRandomize name lookup result in ConnectSocketByName (diff)
downloaddiscoin-3f89a534acfe91896555439ed3a754cfd430d202.tar.xz
discoin-3f89a534acfe91896555439ed3a754cfd430d202.zip
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 c7bc84917..67b95fe0e 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