Skip to content

Commit

Permalink
fixup! fixup! eth,monitor: min/max gas price logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Jul 7, 2021
1 parent 2e95ce7 commit 001fd13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions eth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
"github.com/livepeer/go-livepeer/common"
"github.com/livepeer/go-livepeer/eth/contracts"
lpTypes "github.com/livepeer/go-livepeer/eth/types"
"github.com/livepeer/go-livepeer/monitor"
"github.com/livepeer/go-livepeer/pm"
"github.com/pkg/errors"
)
Expand Down Expand Up @@ -162,9 +161,6 @@ func NewClient(accountAddr ethcommon.Address, keystoreDir, password string, eth
return nil, err
}
backend.SetMaxGasPrice(maxGasPrice)
if monitor.Enabled && maxGasPrice != nil {
monitor.MaxGasPrice(maxGasPrice)
}

am, err := NewAccountManager(accountAddr, keystoreDir, signer)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions eth/gaspricemonitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func NewGasPriceMonitor(gpo GasPriceOracle, pollingInterval time.Duration, minGa
minGasP := big.NewInt(0)
if minGasPrice != nil {
minGasP = minGasPrice
if monitor.Enabled {
monitor.MinGasPrice(minGasPrice)
}
}
if monitor.Enabled {
monitor.MinGasPrice(minGasP)
}
return &GasPriceMonitor{
gpo: gpo,
Expand Down

0 comments on commit 001fd13

Please sign in to comment.