/usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol.rb:62:in `unpack_var_string': undefined method `>' for nil:NilClass (NoMethodError)
from /usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol/alert.rb:36:in `parse'
from /usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol/parser.rb:113:in `parse_alert'
from /usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol/parser.rb:94:in `process_pkt'
from /usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol/parser.rb:167:in `parse_buffer'
from /usr/local/share/gems/bundler/gems/bitcoin-ruby-69123208d45a/lib/bitcoin/protocol/parser.rb:139:in `parse'
from /home/urix/t/toshi/lib/toshi/connection_handler.rb:40:in `receive_data'
from /usr/local/share/gems/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
from /usr/local/share/gems/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
from /home/urix/t/toshi/lib/toshi/peer_manager.rb:95:in `run'
from bin/peer_manager.rb:5:in `<main>'
Toshi (https://github.com/coinbase/toshi) uses library bitcoin-ruby fails in mainnet and testnet3 with such error:
To reproduce:
I maked hot fix - https://github.com/astrolite/bitcoin-ruby/commit/00335850881679ad896bf630f36c056bae95cba1