From a1022e92d82168e086307a9898d015ab56dd1732 Mon Sep 17 00:00:00 2001 From: Rongjian Lan Date: Mon, 26 Oct 2020 12:53:13 -0700 Subject: [PATCH] add todo --- consensus/view_change.go | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/view_change.go b/consensus/view_change.go index 0383ac1ee..f18689e04 100644 --- a/consensus/view_change.go +++ b/consensus/view_change.go @@ -316,6 +316,7 @@ func (consensus *Consensus) startNewView(viewID uint64, newLeaderPriKey *bls.Pri Str("myKey", newLeaderPriKey.Pub.Bytes.Hex()). Msg("[startNewView] viewChange stopped. I am the New Leader") + // TODO: consider make ResetState unified and only called in one place like finalizeCommit() consensus.ResetState() consensus.LeaderPubKey = newLeaderPriKey.Pub