diff --git a/consensus/consensus.go b/consensus/consensus.go index 4440fe9780..6ecb304250 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -119,8 +119,6 @@ type Consensus struct { host p2p.Host // MessageSender takes are of sending consensus message and the corresponding retry logic. msgSender *MessageSender - // If true, this consensus will not propose view change. - disableViewChange bool // Have a dedicated reader thread pull from this chan, like in node SlashChan chan slash.Record // How long in second the leader needs to wait to propose a new block. diff --git a/consensus/view_change.go b/consensus/view_change.go index 5525e12266..a0ac6c0f79 100644 --- a/consensus/view_change.go +++ b/consensus/view_change.go @@ -231,7 +231,7 @@ func createTimeout() map[TimeoutType]*utils.Timeout { // startViewChange start the view change process func (consensus *Consensus) startViewChange() { - if consensus.disableViewChange || consensus.isBackup { + if consensus.isBackup { return }