Fantom-foundation/go-lachesis

View on GitHub
gossip/gasprice/gasprice.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Oracle.SuggestPrice has 64 lines of code (exceeds 50 allowed). Consider refactoring.
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.
Severity: Minor
Found in gossip/gasprice/gasprice.go - About 1 hr to fix

    Method Oracle.getBlockPrices has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (gpo *Oracle) getBlockPrices(ctx context.Context, blockNum uint64, limit int, result chan getBlockPricesResult, quit chan struct{}) {
    Severity: Minor
    Found in gossip/gasprice/gasprice.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status