Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Rodygin committed Oct 31, 2023
1 parent b71f5ed commit 19dca53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/celo_multi_gaspool.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package core

import (
// "fmt"
// "math"

"github.com/celo-org/celo-blockchain/common"
)

Expand All @@ -19,6 +16,8 @@ type MultiGasPool struct {

type FeeCurrencyLimitMapping = map[FeeCurrency]float64

// NewMultiGasPool creates a multi-fee currency gas pool and a default fallback
// pool for any unconfigured currencies and CELO
func NewMultiGasPool(
block_gas_limit uint64,
whitelist []FeeCurrency,
Expand Down Expand Up @@ -48,6 +47,8 @@ func NewMultiGasPool(
}
}

// PoolFor returns a configured pool for the given fee currency or the default
// one otherwise
func (mgp MultiGasPool) PoolFor(feeCurrency *FeeCurrency) *GasPool {
if feeCurrency == nil || mgp.pools[*feeCurrency] == nil {
return mgp.defaultPool
Expand Down

0 comments on commit 19dca53

Please sign in to comment.