ethergo/chain/gas/londinium/gasprice.go
Method Oracle.SuggestPrice
has 61 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (gpo *Oracle) SuggestPrice(ctx context.Context) (*big.Int, error) {
head, _ := gpo.backend.HeaderByNumber(ctx, rpc.LatestBlockNumber)
headHash := head.Hash()
// If the latest gasprice is still available, return it.
Method Oracle.getBlockPrices
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (gpo *Oracle) getBlockPrices(ctx context.Context, signer types.Signer, blockNum uint64, limit int, result chan getBlockPricesResult, quit chan struct{}) {