summaryrefslogtreecommitdiff
path: root/node/OutboundMulticast.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/OutboundMulticast.hpp')
-rw-r--r--node/OutboundMulticast.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/node/OutboundMulticast.hpp b/node/OutboundMulticast.hpp
index 836b840b..a735f52b 100644
--- a/node/OutboundMulticast.hpp
+++ b/node/OutboundMulticast.hpp
@@ -126,6 +126,16 @@ public:
}
/**
+ * Log an address as having been used so we will not send there in the future
+ *
+ * @param toAddr Address to log as sent
+ */
+ inline void logAsSent(const Address &toAddr)
+ {
+ _alreadySentTo.push_back(toAddr);
+ }
+
+ /**
* Try to send this to a given peer if it hasn't been sent to them already
*
* @param RR Runtime environment