|
|
|
@ -168,7 +168,7 @@ func (consensus *Consensus) onViewChangeSanityCheck(recvMsg *FBFTMessage) bool { |
|
|
|
|
Msg("[onViewChangeSanityCheck] ViewChanging ID Is Low") |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if recvMsg.ViewID-consensus.GetViewChangingID() > MaxViewIDDiff { |
|
|
|
|
if recvMsg.ViewID > consensus.GetViewChangingID() && recvMsg.ViewID-consensus.GetViewChangingID() > MaxViewIDDiff { |
|
|
|
|
consensus.getLogger().Debug(). |
|
|
|
|
Msg("[onViewChangeSanityCheck] Received viewID that is MaxViewIDDiff (249) further from the current viewID!") |
|
|
|
|
return false |
|
|
|
|