Make sure we properly handle receiving our own proposals and validations.

This commit is contained in:
JoelKatz
2012-10-19 11:51:44 -07:00
parent fd1122c673
commit 19efa3bf9b
6 changed files with 22 additions and 11 deletions

View File

@@ -712,6 +712,12 @@ bool NetworkOPs::recvPropose(uint32 proposeSeq, const uint256& proposeHash, cons
return mMode != omFULL;
}
if (mConsensus->isOurPubKey(naPeerPublic))
{
cLog(lsTRACE) << "Received our own validation";
return false;
}
// Is this node on our UNL?
if (!theApp->getUNL().nodeInUNL(naPeerPublic))
{