Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xtrinch/stratumv2-python-miner
Stratum v2 bitcoin miner written in python
https://github.com/xtrinch/stratumv2-python-miner
bitcoin bitcoin-miner miner python stratum stratum-v2
Last synced: 2 months ago
JSON representation
Stratum v2 bitcoin miner written in python
- Host: GitHub
- URL: https://github.com/xtrinch/stratumv2-python-miner
- Owner: xtrinch
- Created: 2022-03-25T17:27:18.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T12:53:09.000Z (about 1 year ago)
- Last Synced: 2024-10-11T13:42:11.302Z (3 months ago)
- Topics: bitcoin, bitcoin-miner, miner, python, stratum, stratum-v2
- Language: Python
- Homepage:
- Size: 38.1 KB
- Stars: 20
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mining controller
Simple python bitcoin miner with stratum2. It sure isn't fast as it's written in python, but this is just a proof of concept for stratum2 mining as there's no other pythonic examples I could find on github.
It supports the following scenarios:
```
Miner (V2) ----> pool (V2)
```It includes a simulation of a pool and an actual miner client. Ideally, you run them both, you can also run the miner against a real stratum2 server (you can find some @ slushpool) but you may get banned for not producing any valid shares after a while.
# Running
- Create virtualenv with `python3 -m venv env`.
- Run `source env/bin/activate`.
- Run `pip install -r requirements.txt`.Run pool with `python3 simulate-pool.py` and miner with `python3 mine.py`.
# Overview
The protocol used is **Stratum V2**. The basis for this repository is https://github.com/braiins/braiins/tree/bos-devel/open/protocols/stratum/sim.
# Features
- Basic bitcoin mining via stratum 2 protocol
## Install
Requires Python 3.7.