Skip to content

Commit

Permalink
Removed unused parameter disableViewChange. (#4699)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen authored Jul 3, 2024
1 parent be65e8c commit 74f7b5c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions consensus/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,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.
Expand Down
2 changes: 1 addition & 1 deletion consensus/view_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 74f7b5c

Please sign in to comment.