Skip to content

Commit

Permalink
Merge branch 'develop' into leo/gasoracle_fix_feescalar_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Tri-stone authored Aug 15, 2023
2 parents 1fba1d3 + 88f482e commit ebe535b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gas-oracle/oracle/gas_price_oracle.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func (g *GasPriceOracle) OverHeadLoop() {
continue
}
// repeat query latest block is not allowed
if height != nil && height.Uint64() != 0 && height.Uint64() == latestHeader.Number.Uint64() {
if height != nil && height.Uint64() != 0 && height.Uint64() >= latestHeader.Number.Uint64() {
continue
}
if height == nil || height.Uint64() == 0 {
Expand All @@ -254,7 +254,7 @@ func (g *GasPriceOracle) OverHeadLoop() {
}
}
_ = writeGasOracleSyncHeight(db, latestHeader.Number)
height = latestHeader.Number
height = latestHeader.Number.Add(latestHeader.Number, big.NewInt(1))
log.Info("Update synced height", "height", height)
case ev := <-stateBatchAppendChan:
currentCtcBatches, err := g.ctcBackend.GetTotalBatches(&bind.CallOpts{})
Expand Down

0 comments on commit ebe535b

Please sign in to comment.