Rework addnode behaviour

This commit is contained in:
Pieter Wuille
2016-05-28 15:32:30 +02:00
committed by lateminer
parent cb47af78cc
commit 0fc3b89fa1
3 changed files with 94 additions and 124 deletions

View File

@@ -820,4 +820,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