Skip to content

Commit

Permalink
Updated comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen committed Nov 24, 2024
1 parent 68b404b commit 038e2f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/view_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ func (a nextLeaderParams) Config() *params.ChainConfig {
return a.config
}

// getNextLeaderKey uniquely determine who is the leader for given viewID
// It reads the current leader's pubkey based on the blockchain data and returns
// getNextLeaderKeySkipSameAddress uniquely determine who is the leader for given viewID
// It receives the committee and returns
// the next leader based on the gap of the viewID of the view change and the last
// know view id of the block.
func (consensus *Consensus) getNextLeaderKeySkipSameAddress(viewID uint64, committee *shard.Committee) *bls.PublicKeyWrapper {
Expand Down

0 comments on commit 038e2f3

Please sign in to comment.