yegor256/sibit

View on GitHub
lib/sibit/bitcoinchain.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method block has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def block(hash)
      head = Sibit::Json.new(http: @http, log: @log).get(
        Iri.new('https://api-r.bitcoinchain.com/v1/block').append(hash)
      )[0]
      raise Sibit::Error, "The block #{hash} is not found" if head.nil?
Severity: Minor
Found in lib/sibit/bitcoinchain.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category