aboutsummaryrefslogtreecommitdiff
path: root/src/alert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/alert.cpp')
-rw-r--r--src/alert.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/alert.cpp b/src/alert.cpp
index d49584920..417bc281a 100644
--- a/src/alert.cpp
+++ b/src/alert.cpp
@@ -6,6 +6,7 @@
#include "alert.h"
#include "chainparams.h"
+#include "clientversion.h"
#include "key.h"
#include "net.h"
#include "timedata.h"
@@ -127,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)
{