Skip to content

Commit

Permalink
remove useless lines
Browse files Browse the repository at this point in the history
  • Loading branch information
giskook committed Oct 9, 2023
1 parent c43ec9a commit 5622940
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,14 +480,6 @@ func (p *Pool) validateTx(ctx context.Context, poolTx Transaction) error {
}
}

// Reject transactions with a gas price lower than the minimum gas price
p.minSuggestedGasPriceMux.RLock()
gasPriceCmp := poolTx.GasPrice().Cmp(p.minSuggestedGasPrice)
p.minSuggestedGasPriceMux.RUnlock()
if gasPriceCmp == -1 {
return ErrGasPrice
}

// Transactor should have enough funds to cover the costs
// cost == V + GP * GL
balance, err := p.state.GetBalance(ctx, from, lastL2Block.Root())
Expand Down

0 comments on commit 5622940

Please sign in to comment.