From 79947fb167a514035eb907d7bda187c86d9b7e9c Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Fri, 14 Jan 2022 09:10:45 +0000 Subject: [PATCH] [fixme] ignore M1 in view change to reach consensus Signed-off-by: Leo Chen --- consensus/view_change_construct.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/view_change_construct.go b/consensus/view_change_construct.go index 81f2ed228..e37c870ec 100644 --- a/consensus/view_change_construct.go +++ b/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 {