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