braidpool / bitcoin

Bitcoin Core integration/staging tree
https://bitcoincore.org/en/download
MIT License
1 stars 0 forks source link

Switch to IPC communication with bitcoind for mining #4

Open mcelrath opened 2 months ago

mcelrath commented 2 months ago

Motivation

Bitcoin is adding an IPC (InterProcess Communication) over a unix socket mechanism to get block templates and manage mining. See also https://github.com/bitcoin/bitcoin/pull/30509. A mining example is here.

I like this solution better than using ZMQ or the StratumV2 API because it makes outsourcing of block templates more difficult. We want to have a Braidpool node running on the same host as bitcoind, which IPC requires.

Possible solution

Adapt the bitcoin-mine test program for CPUNet, replacing the ZMQ-based mining script .

Useful Skills

Guidance for new contributors

Want to work on this issue?

For guidance on contributing, please read CONTRIBUTING.md before opening your pull request.