Skip to content

A scalable peer to peer bitcoin mining pool with support for hashrate futures.

License

Notifications You must be signed in to change notification settings

pool2win/braidpool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status codecov

Goals

The goals of the pool are:

  1. Lower variance for independent miners, even when large miners join the pool.
  2. Miners build their own blocks, just like in p2pool.
  3. Payouts require a constant size blockspace, independent of the number of miners on the pool.
  4. Provide building blocks for enabling a futures market of hash rates.

Developer

To run tests for the braidpool node, use the usual cargo test utility.

cd node
cargo test

We are using codecov in the CI workflow. To set codecov locally, you will need to install llvm-codecov and then you'll be able to run it.

Installation cargo +stable install cargo-llvm-cov --locked or follow instructions here: https://github.com/taiki-e/cargo-llvm-cov.

Running test with coverage reports cargo llvm-code.

Running the node

For the moment, the node runs a simple p2p broadcast. To run it you need to do the usual cargo things

cd node
cargo build

# run the first seed node on port 6680
RUST_LOG=info cargo run

# run other nodes pointing to the seed node and specify their own port as 6681
RUST_LOG=info cargo run -- --config-file=config.1.toml

# run other nodes pointing to the seed node and specify their own port as 6682
RUST_LOG=info cargo run -- --config-file=config.2.toml

Progress

The project on github tracks the main components to build. Here's a list to keep us focused:

  • P2P gossip based broadcast of miner blocks and shares.
  • Use FROST rust implementation for providing threshold schnorr signatures. Use mock clock for identifying rounds.
  • A DAG of shares to track contributions for miners.
  • Validate received blocks and shares.
  • Single script installer (limited to Linux variants, potentially using docker).

Matrix chat: https://matrix.to/#/#braidpool:matrix.org

Mailing list: https://sourceforge.net/p/braidpool/mailman/braidpool-discuss/

Development blog: https://blog.opdup.com/

About

A scalable peer to peer bitcoin mining pool with support for hashrate futures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published