mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Merge #8113: Rework addnode behaviour
1a5a4e6Randomize name lookup result in ConnectSocketByName (Pieter Wuille)f9f5cfcPrevent duplicate connections where one is by name and another by ip (Pieter Wuille)1111b80Rework addnode behaviour (Pieter Wuille)
This commit is contained in:
10
src/net.h
10
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
|
||||
|
||||
Reference in New Issue
Block a user