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