From 3bad6006a1c7475aed77f9973070f8eda1005a5b Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Sat, 10 Oct 2020 06:43:48 +0000 Subject: [PATCH] [viewchange] newview message reprocessing Signed-off-by: Leo Chen --- consensus/view_change_construct.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consensus/view_change_construct.go b/consensus/view_change_construct.go index c5866bae5..7329d4c67 100644 --- a/consensus/view_change_construct.go +++ b/consensus/view_change_construct.go @@ -186,7 +186,10 @@ func (vc *viewChange) VerifyNewViewMsg(recvMsg *FBFTMessage) (*types.Block, erro _, ok = vc.newViewMsg[recvMsg.ViewID][senderKeyStr] if ok { - return nil, errors.New("[VerifyNewViewMsg] received new view message already") + vc.getLogger().Warn(). + Uint64("MsgBlockNum", recvMsg.BlockNum). + Uint64("MyBlockNum", vc.newViewMsg[recvMsg.ViewID][senderKeyStr]). + Msg("[VerifyNewViewMsg] redundant NewView Message") } vc.newViewMsg[recvMsg.ViewID][senderKeyStr] = recvMsg.BlockNum