Replace a Few IntFlags with Uint64Flags (#9959)

* use uints instead of ints

* fix method

* fix

* fix

* builds

* deepsource

* deep source
This commit is contained in:
Raul Jordan
2021-12-01 18:34:53 -05:00
committed by GitHub
parent ab60b1c7b2
commit 790bf03123
25 changed files with 57 additions and 58 deletions

View File

@@ -696,7 +696,7 @@ func (p *Status) BestFinalized(maxPeers int, ourFinalizedEpoch types.Epoch) (typ
// BestNonFinalized returns the highest known epoch, higher than ours,
// and is shared by at least minPeers.
func (p *Status) BestNonFinalized(minPeers int, ourHeadEpoch types.Epoch) (types.Epoch, []peer.ID) {
func (p *Status) BestNonFinalized(minPeers uint64, ourHeadEpoch types.Epoch) (types.Epoch, []peer.ID) {
connected := p.Connected()
epochVotes := make(map[types.Epoch]uint64)
pidEpoch := make(map[peer.ID]types.Epoch, len(connected))