lib/bitcoin/protocol/block.rb in bitcoin-ruby-0.0.4 vs lib/bitcoin/protocol/block.rb in bitcoin-ruby-0.0.5

- old
+ new

@@ -136,9 +136,13 @@ } h['aux_pow'] = @aux_pow.to_hash if @aux_pow h end + def size + payload.bytesize + end + def hextarget Bitcoin.decode_compact_bits(@bits) end def decimaltarget