This is a repository for research purposes with a limited (read: wrong) implementation of the Kaspa P2P protocol. The main product of this effort is a map of the nodes available to the public.
For the first run, you should create a virtual env and install the dependencies.
python -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
To run the crawler, run the following command inside the virtual env.
./kaspa_crawler.py -v --token=<ipinfo token>
To see the available options, run
./kaspa_crawler.py -h
Install the extra dependencies
pip install geopandas pandas matplotlib
./scripts/plot_map.py data/nodes.json
To handle errors due to too many open files, increase the ulimit
of your
system, then run the script.
ulimit -n 22000
Requires wget. Run for the root directory of the repository.
bash scripts/sync_protos.sh