status-im/status-go

View on GitHub
services/wallet/transfer/concurrent.go

Summary

Maintainability
A
2 hrs
Test Coverage
B
85%

Avoid deeply nested control flow statements.
Open

                            if to.Cmp(newStartBlock) > 0 {
                                log.Debug("found possible start block, we should not search back", "block", to)
                                newStartBlock = to // increase newStartBlock if we found a new higher block
                            }
Severity: Major
Found in services/wallet/transfer/concurrent.go - About 45 mins to fix

    Function findBlocksWithEthTransfers has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func findBlocksWithEthTransfers(parent context.Context, client balance.Reader, cache balance.Cacher,
        account common.Address, low, high *big.Int, noLimit bool, threadLimit uint32) (
    Severity: Major
    Found in services/wallet/transfer/concurrent.go - About 35 mins to fix

      Function checkRangesWithStartBlock has 7 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func checkRangesWithStartBlock(parent context.Context, client balance.Reader, cache balance.Cacher,
          account common.Address, ranges [][]*big.Int, threadLimit uint32, startBlock *big.Int) (
      Severity: Major
      Found in services/wallet/transfer/concurrent.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status