lib/tapyrus/rpc/request_handler.rb in tapyrus-0.1.0 vs lib/tapyrus/rpc/request_handler.rb in tapyrus-0.2.0

- old
+ new

@@ -29,21 +29,21 @@ raise ArgumentError.new('Block not found') unless entry if verbose { hash: block_id, height: entry.height, - version: entry.header.version, - versionHex: entry.header.version.to_even_length_hex, + features: entry.header.features, + featuresHex: entry.header.features.to_even_length_hex, merkleroot: entry.header.merkle_root.rhex, time: entry.header.time, mediantime: node.chain.mtp(block_hash), nonce: entry.header.nonce, bits: entry.header.bits.to_even_length_hex, previousblockhash: entry.prev_hash.rhex, nextblockhash: node.chain.next_hash(block_hash).rhex } else - entry.header.to_payload.bth + entry.header.to_hex end end # Returns connected peer information. def getpeerinfo