[viewchange] be consistent when construct NewView message

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3388/head
Leo Chen 4 years ago
parent b6deec9a5a
commit 72735d3a37
  1. 2
      consensus/view_change_msg.go

@ -106,7 +106,7 @@ func (consensus *Consensus) constructNewViewMessage(viewID uint64, priKey *bls.P
Type: msg_pb.MessageType_NEWVIEW, Type: msg_pb.MessageType_NEWVIEW,
Request: &msg_pb.Message_Viewchange{ Request: &msg_pb.Message_Viewchange{
Viewchange: &msg_pb.ViewChangeRequest{ Viewchange: &msg_pb.ViewChangeRequest{
ViewId: consensus.GetViewChangingID(), ViewId: viewID,
BlockNum: consensus.blockNum, BlockNum: consensus.blockNum,
ShardId: consensus.ShardID, ShardId: consensus.ShardID,
SenderPubkey: priKey.Pub.Bytes[:], SenderPubkey: priKey.Pub.Bytes[:],

Loading…
Cancel
Save