parent
723c752636
commit
20a5f610d3
1 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,9 @@ bool CAlert::RelayTo(CNode* pnode) const
|
||||||
{
|
{
|
||||||
if (!IsInEffect())
|
if (!IsInEffect())
|
||||||
return false;
|
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
|
// returns true if wasn't already contained in the set
|
||||||
if (pnode->setKnown.insert(GetHash()).second)
|
if (pnode->setKnown.insert(GetHash()).second)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue