Stash and apply proposals received with a different LCL.

This commit is contained in:
JoelKatz
2012-08-30 12:28:02 -07:00
parent faaedb806f
commit 4d3fc5b6a5
4 changed files with 29 additions and 5 deletions

View File

@@ -639,7 +639,10 @@ bool NetworkOPs::recvPropose(uint32 proposeSeq, const uint256& proposeHash, uint
{ // Note that if the LCL is different, the signature check will fail
Log(lsWARNING) << "Ledger proposal fails signature check";
if ((mMode != omFULL) && (mMode != omTRACKING) && theApp->getUNL().nodeInUNL(proposal->peekPublic()))
{
proposal->setSignature(signature);
mConsensus->deferProposal(proposal, nodePublic);
}
return false;
}