summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-13 10:51:05 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-07-13 10:51:05 -0700
commit495c5ce81ddb245e21f21325927236d0f666f6cf (patch)
tree9314e377e7189cf8ccc52ed8b6ff5103a8a58f8f /node/Network.hpp
parentdab0fb9e05677bdc6294f196fcf8234892c582c1 (diff)
downloadinfinitytier-495c5ce81ddb245e21f21325927236d0f666f6cf.tar.gz
infinitytier-495c5ce81ddb245e21f21325927236d0f666f6cf.zip
Bunch of remote tracing work.
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 454a3f20..be5f1a12 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -249,6 +249,19 @@ public:
bool gate(void *tPtr,const SharedPtr<Peer> &peer);
/**
+ * Check whether a given peer has recently had an association with this network
+ *
+ * This checks whether a peer has communicated with us recently about this
+ * network and has possessed a valid certificate of membership. This may return
+ * true even if the peer has been offline for a while or no longer has a valid
+ * certificate of membership but had one recently.
+ *
+ * @param addr Peer address
+ * @return True if peer has recently associated
+ */
+ bool recentlyAssociatedWith(const Address &addr);
+
+ /**
* Do periodic cleanup and housekeeping tasks
*/
void clean();