aboutsummaryrefslogtreecommitdiff
path: root/src/alert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/alert.cpp')
-rw-r--r--src/alert.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alert.cpp b/src/alert.cpp
index d495849206..b6d3804792 100644
--- a/src/alert.cpp
+++ b/src/alert.cpp
@@ -127,6 +127,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)
{