git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Don't relay alerts to peers before version negotiation
[novacoin.git]
/
src
/
alert.cpp
diff --git
a/src/alert.cpp
b/src/alert.cpp
index
a1dc27a
..
9172ad8
100644
(file)
--- a/
src/alert.cpp
+++ b/
src/alert.cpp
@@
-130,6
+130,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)
{