[fixme] ignore M1 in view change to reach consensus

Signed-off-by: Leo Chen <leo@harmony.one>
pull/4002/head
Leo Chen 3 years ago
parent af30da7cff
commit 79947fb167
No known key found for this signature in database
GPG Key ID: 9A0417092EBC5E96
  1. 1
      consensus/view_change_construct.go

@ -403,6 +403,7 @@ func (vc *viewChange) InitPayload(
if !inited {
preparedMsgs := fbftlog.GetMessagesByTypeSeq(msg_pb.MessageType_PREPARED, blockNum)
preparedMsg := fbftlog.FindMessageByMaxViewID(preparedMsgs)
preparedMsg = nil //FIXME: disable m1 payload to reach consensus on view change
hasBlock := false
if preparedMsg != nil {
if preparedBlock := fbftlog.GetBlockByHash(preparedMsg.BlockHash); preparedBlock != nil {

Loading…
Cancel
Save