Skip to content

Commit

Permalink
Hide quorum function as it doesn't belong to the interface anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Nov 7, 2022
1 parent 197d99f commit 5b2791f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/ibft/consensus_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (i *backendIBFT) MaximumFaulty() uint64 {
return uint64(CalcMaxFaultyNodes(i.currentValidators))
}

func (i *backendIBFT) Quorum(blockNumber uint64) uint64 {
func (i *backendIBFT) quorum(blockNumber uint64) uint64 {
validators, err := i.forkManager.GetValidators(blockNumber)
if err != nil {
i.logger.Error(
Expand All @@ -129,7 +129,7 @@ func (i *backendIBFT) Quorum(blockNumber uint64) uint64 {

// HasQuorum returns true if quorum is reached for the given height
func (i *backendIBFT) HasQuorum(view *protoIBFT.View, messages []*protoIBFT.Message) bool {
quorum := i.Quorum(view.Height)
quorum := i.quorum(view.Height)

if len(messages) > 0 {
switch messages[0].GetType() {
Expand Down

0 comments on commit 5b2791f

Please sign in to comment.