aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/alert.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alert.cpp b/src/alert.cpp
index f16898dc38..417bc281a7 100644
--- a/src/alert.cpp
+++ b/src/alert.cpp
@@ -128,6 +128,9 @@ bool CAlert::RelayTo(CNode* pnode) const
{
if (!IsInEffect())
return false;
+ // don't relay to nodes which haven't sent their version message
+ if (pnode->nVersion == 0)
+ return false;
// returns true if wasn't already contained in the set
if (pnode->setKnown.insert(GetHash()).second)
{