lib/bitcoin/protocol/handler.rb in bitcoin-ruby-0.0.7 vs lib/bitcoin/protocol/handler.rb in bitcoin-ruby-0.0.8

- old
+ new

@@ -31,9 +31,13 @@ def on_block(block) #p ['block', block] puts block.to_json end + def on_error(message, payload) + p ['error', message, payload] + end + end end end