Monero P2Pool consensus reimplementation
Go to file
2023-05-23 07:30:25 +02:00
cmd Added utils ContextTicker 2023-05-23 07:30:25 +02:00
docker Collect and build with PGO information 2023-05-21 10:52:24 +02:00
index Track seen and alternate blocks, and submit these alternate blocks to monerod / other peers as well 2023-05-22 11:11:55 +02:00
monero Optimize address sorting, crypto cache, use unsafe VarTimeScalarMult for sidechain operations 2023-05-20 10:49:05 +02:00
p2pool Added utils ContextTicker 2023-05-23 07:30:25 +02:00
pgo-data Collect and build with PGO information 2023-05-21 10:52:24 +02:00
testdata Added crypto_tests.txt support from upstream 2023-05-17 07:41:53 +02:00
types Added new testdata system using p2pool vectors 2023-05-10 03:46:33 +02:00
utils Added utils ContextTicker 2023-05-23 07:30:25 +02:00
.dockerignore Remove wrapping http from http.conf 2023-04-19 05:13:01 +02:00
.drone.yml Use secrets on CI to specify monerod node 2023-05-18 05:31:45 +02:00
.env.example Revamp site header/footer with IRC/matrix links and compact information 2023-04-20 05:25:49 +02:00
.gitignore Added all entries to single docker-compose.yml 2023-04-11 05:54:49 +02:00
docker-compose.yml Collect and build with PGO information 2023-05-21 10:52:24 +02:00
go.mod Optimize address sorting, crypto cache, use unsafe VarTimeScalarMult for sidechain operations 2023-05-20 10:49:05 +02:00
go.sum Optimize address sorting, crypto cache, use unsafe VarTimeScalarMult for sidechain operations 2023-05-20 10:49:05 +02:00
LICENSE Initial commit 2022-10-08 20:55:01 +02:00
psql.sh Index database, archivetoindex, database schema 2023-04-11 04:26:24 +02:00
README.md Revamp site header/footer with IRC/matrix links and compact information 2023-04-20 05:25:49 +02:00

P2Pool Observer

This repository contains several libraries and utilities to produce statistics and historical archives of Monero P2Pool decentralized pool, including consensus-compatible reimplementation of a P2Pool server instance.

Other general tools to work with Monero cryptography are also included.

Reporting issues

You can give feedback or report / discuss issues on:

Maintainer-run Observer Instances

Host Onion Address IRC Channel Notes
P2Pool.Observer p2pool2giz2r5cpqicajwoazjcxkfujxswtk3jolfk2ubilhrkqam2id.onion #p2pool-log or Matrix Tracking up-to-date Main P2Pool on Mainnet
MINI.P2Pool.Observer p2pmin25k4ei5bp3l6bpyoap6ogevrc35c3hcfue7zfetjpbhhshxdqd.onion #p2pool-mini or Matrix Tracking up-to-date Mini P2Pool on Mainnet
OLD.P2Pool.Observer temp2p7m2ddclcsqx2mrbqrmo7ccixpiu5s2cz2c6erxi2lppptdvxqd.onion #p2pool-log or Matrix Tracking old fork pre-v3.0 Main P2Pool on Mainnet
OLD-MINI.P2Pool.Observer temp2pbud6av2jx3lh3yovrj4mjjy2k4p5rxydviosp356ndzs4nd6yd.onion #p2pool-mini or Matrix Tracking old fork pre-v3.0 Mini P2Pool on Mainnet

Donations

This project is provided for everyone to use, for free, as a hobby project. Any support is appreciated.

Donate to support this project, its development, and running the Observer Instances on 4AeEwC2Uik2Zv4uooAUWjQb2ZvcLDBmLXN4rzSn3wjBoY8EKfNkSUqeg5PxcnWTwB1b2V39PDwU9gaNE5SnxSQPYQyoQtr7

You can also use the OpenAlias p2pool.observer directly on the GUI.

Operational instructions

A docker-compose setup is provided and documented.

If desired each tool can be run individually, but that is left to the user to configure, refer to Docker setup as reference.

Requirements

  • docker-compose or similar
  • git installed
  • Disk space for new incoming historic data. Assume a few tens of MiB per day
  • A monerod non-pruned node running in unrestricted mode preferably, but can work with restricted mode.
  • Enough RAM to fit state and incoming queries. It can run with lower with adjustment of settings, but 8 GiB per instance should be fine.

Initial setup

$ git clone https://git.gammaspectra.live/P2Pool/p2pool-observer.git test-instance
$ cd test-instance
$ cp .env.example .env

Edit .env via your preferred editor, specifically around the monerod host options and generate keys for the Tor hidden service.

If you want to make changes to additional docker-compose settings, do not edit docker-compose.yml. Instead create docker-compose.override.yml and place new settings there. See Multiple Compose files documentation.

Update / Apply new settings

Within the instance folder, run this command

$ git pull && docker-compose build --pull && docker-compose up -d && docker-compose restart tor

docker-compose restart tor is necessary due to the tor server not refreshing DNS of the containers.

Backfill likely sweep transactions

When a new instance starts with previously imported archives you might want to backfill sweep transactions. For new instances this is not necessary, and you can also skip this step and just rely on future data.

$ docker-compose exec --workdir /usr/src/p2pool daemon \
go run -v git.gammaspectra.live/P2Pool/p2pool-observer/cmd/scansweeps \
-host MONEROD_HOST -rpc-port MONEROD_RPC_PORT \
-api-host "http://p2pool:3131" \
-db="host=db port=5432 dbname=p2pool user=p2pool password=p2pool sslmode=disable"

Can also specify -e TRANSACTION_LOOKUP_OTHER=https://OTHER_INSTANCE just before daemon to query other instances additionally with alternate or longer history.