Skip to content
Bitnodes is currently being developed to estimate the size of the Bitcoin network by finding all the reachable nodes in the network.
Branch: master
Clone or download
Pull request Compare This branch is 50 commits ahead of ayeowch:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
conf
data
depends/redis
geoip
jsontosql
log
tests
.flake8
.gitignore
LICENSE
README.md
__init__.py
crawl.py
export.py
pcap.py
ping.py
protocol.py
protocol.pyc
requirements.txt
resolve.py
seeder.py
start.sh
utils.py
utils.pyc
zone.tmpl

README.md

Ravennodes

This project is based on Bitnodes.

Ravennodes is currently being developed to estimate the size of the Ravencoin network by finding all the reachable nodes in the network. These are the nodes that accept incoming connections. Why you should run a full node is explained here on the Bitcoin wiki. The current methodology involves sending getaddr messages recursively to find all the reachable nodes in the network, starting from a set of seed nodes. It is worth mentioning that this method of estimating network size does not list all full nodes because not all nodes have an open port that can be probed using Ravennodes. These nodes are either behind firewalls or they are configured to not listen for connections.

Main Changes

  • Changed parameters to support Ravencoin
  • Turned off Tor network support.

Dependencies

Steps on setting up a machine to run Ravennodes

Ubuntu 18.04, 16GB RAM Machine:

Install redis

sudo apt update && sudo apt upgrade
cd ~/
sudo apt install redis

# I prefer running redis manually
# Optional, remove the service: sudo service redis-server disable

Install Ravennodes and set up dependencies

git clone https://github.com/jeroz1/Ravennodes.git
#Move redis conf file
sudo cp ~/Ravennodes/depends/redis/redis.conf /etc/redis/
#Install Python requirements
cd ~/Ravennodes
pip install -r requirements.txt
#Update GeoIP
bash geoip/update.sh

Update open file limits to prevent Ravennodes crashing on IO errors

# Edit the following file:
sudo nano /etc/security/limits.conf
	#Add the following:
	* soft nofile 1000000
	* hard nofile 1000000
 	root soft nofile 1000000
	root hard nofile 1000000
	
# If you run an Ubuntu GUI, Edit the following files too:
sudo nano /etc/systemd/user.conf
	#Change the following setting:
	DefaultLimitNOFILE=1000000
sudo nano /etc/systemd/system.conf 
	#Change the following setting:
	DefaultLimitNOFILE=1000000

Start redis service

#Login as admin
sudo -i
#Update /proc/sys/net/core/somaxconn
sysctl -w net.core.somaxconn=511
#Disable THP
echo never > /sys/kernel/mm/transparent_hugepage/enabled
# Set overcommit_memory to 1
sysctl vm.overcommit_memory=1
#Start Redis Server
redis-server /etc/redis/redis.conf
#Alternatively, run redis in the background with redis-server /etc/redis/redis.conf --daemonize yes

#Make sure the file redis.sock is made in /tmp/

To start the Ravennodes crawler

Open a new console and start the crawler:

cd ~/Ravennodes
./start.sh

Data output will be available in ~/Ravennodes/data/export/5241564e

Process logs will be available in ~/Ravennodes/log


-Jeroz

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.