mhanne / bitcoin-ruby-node Goto Github PK
View Code? Open in Web Editor NEWbitcoin node based on bitcoin-ruby-blockchain
License: Other
bitcoin node based on bitcoin-ruby-blockchain
License: Other
Sometimes this happens. Not a big deal but should be fixed.
DEBUG network: 128.8.124.7:8333 >> addr: 128.8.124.7:8333 alive: true, service: 1
Error parsing addr: [0, 0, 0, 0]
WARN network: 128.8.124.7:8333 Error handling data: f9beb4d961646472000000000000000023000000278490750170c85055010000000000000000000000000000000000ffff80087c07208d00000000
#<NoMethodError: undefined method `ip' for nil:NilClass>
/home/webbtc/bitcoin-ruby-node/lib/bitcoin/node/connection_handler.rb:159:in `block in on_addr'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/logger.rb:61:in `call'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/logger.rb:61:in `block in method_missing'
(eval):5:in `debug'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/logger.rb:61:in `method_missing'
/home/webbtc/bitcoin-ruby-node/lib/bitcoin/node/connection_handler.rb:159:in `on_addr'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:55:in `block in parse_addr'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:49:in `each_slice'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:49:in `parse_addr'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:86:in `process_pkt'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:163:in `parse_buffer'
/home/webbtc/.bundler/ruby/2.1.0/bitcoin-ruby-664b63a369c3/lib/bitcoin/protocol/parser.rb:135:in `parse'
/home/webbtc/bitcoin-ruby-node/lib/bitcoin/node/connection_handler.rb:65:in `block in receive_data'
/usr/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
/home/webbtc/bitcoin-ruby-node/lib/bitcoin/node/connection_handler.rb:65:in `receive_data'
/var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/var/lib/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/home/webbtc/bitcoin-ruby-node/lib/bitcoin/node.rb:237:in `run'
bin/bitcoin_node:159:in `<main>'
Hello, our bitcoin ruby node seems to stop getting new blocks, and the client info shows block sync = false.
Any advice? Thanks
%# bitcoin_node_cli info
{
"blocks": {
"height": 358906,
"depth": 358906,
"peers": 351929,
"sync": false
}
}
I see this sometimes in the log. Is it something to be concerned about? Thanks
Error parsing addr: [0, 0, 0, 0]
INFO network: requesting addrs
#<NoMethodError: undefined method `alive?' for nil:NilClass>
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:287:in `block in handle_info'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:287:in `select'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:287:in `handle_info'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:47:in `block in receive_data'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:33:in `each'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node/command_handler.rb:33:in `receive_data'
/usr/local/rvm/gems/ruby-2.1.5/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/usr/local/rvm/gems/ruby-2.1.5/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/lib/bitcoin/node.rb:237:in `run'
/usr/local/rvm/gems/ruby-2.1.5/bundler/gems/bitcoin-ruby-node-29605f8454b5/bin/bitcoin_node:159:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.1.5/bin/bitcoin_node:23:in `load'
/usr/local/rvm/gems/ruby-2.1.5/bin/bitcoin_node:23:in `<main>'
/usr/local/rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `eval'
/usr/local/rvm/gems/ruby-2.1.5/bin/ruby_executable_hooks:15:in `<main>'
This can be useful when debugging validation errors, to prevent the node from spamming away the relevant parts of the log.
Here is error log
ubuntu@ip-172-31-36-36:~$ gem install bitcoin-ruby-node
ERROR: Could not find a valid gem 'bitcoin-ruby-node' (>= 0) in any repository
ERROR: Possible alternatives: bitcoin-ruby, bitcoin_node, bitcoin_payable, bitcoinde, bitcointoyou
How to install it?
Hello,
This repository is listed on the Awesome Bitcoin list, which is a collection of useful Bitcoin projects. However, it seems that the 'bitcoin' topic is missing from this repository's topics.
Adding the 'bitcoin' topic will help users discover your project more easily and recognize its relevance to the Bitcoin ecosystem. To add the topic, please follow these steps:
Thank you for your attention and for contributing to the Bitcoin community!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.