lib/sibit/bitcoinchain.rb
Method block
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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?