Skip to content

Commit

Permalink
Comments fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Jun 20, 2023
1 parent beeeda2 commit 74c482e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions gasprice/gasprice.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ func (g *GasHelper) MaxPriorityFeePerGas() (*big.Int, error) {

// at least amount of transactions to get
minNumOfTx := int(g.numOfBlocksToCheck) * 2
if len(allPrices) < minNumOfTx {
// collect some more blocks and transactions if not enough transactions were collected
for len(allPrices) < minNumOfTx && currentBlock.Number() > 0 {
if err := collectPrices(currentBlock); err != nil {
return nil, err
}
// collect some more blocks and transactions if not enough transactions were collected
for len(allPrices) < minNumOfTx && currentBlock.Number() > 0 {
if err := collectPrices(currentBlock); err != nil {
return nil, err
}
}

Expand Down

0 comments on commit 74c482e

Please sign in to comment.