lib/bitcoin/protocol/handler.rb in bitcoin-ruby-0.0.18 vs lib/bitcoin/protocol/handler.rb in bitcoin-ruby-0.0.19

- old
+ new

@@ -1,10 +1,10 @@ # encoding: ascii-8bit module Bitcoin module Protocol - + # https://en.bitcoin.it/wiki/Protocol_documentation#Message_types class Handler def on_inv_transaction(hash) p ['inv transaction', hash.hth] end @@ -27,17 +27,15 @@ def on_tx(tx) p ['tx', tx] end def on_block(block) - #p ['block', block] + # p ['block', block] puts block.to_json end def on_error(message, payload) p ['error', message, payload] end - end - end end