chore(prototype): move legacy python miner into prototype folder with usage docs

This commit is contained in:
davide committed 2026-03-30 01:10:31 +02:00
1 parent 1f0b00c679
commit 41bfecd0d8
9 files changed
+53

No files matched your search

+53
View File
@@ -0,0 +1,53 @@
# Prototype Python Miner
Questa cartella contiene la versione Python originale del miner.
## Contenuto
- `launcher.py`: orchestrazione multiprocesso e dashboard hashrate
- `main.py`: ciclo mining single worker
- `miner.py`: loop PoW SHA-256
- `block_builder.py`: coinbase, merkle root, header, serializzazione blocco
- `rpc.py`: helper RPC verso Bitcoin Core
- `utils.py`: utility comuni (target, hash, watchdog)
- `config.py.example`: template configurazione
- `requirements.txt`: dipendenze Python
## Setup
```bash
cd prototype
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```
## Configurazione
1. Crea `config.py` partendo dal template:
```bash
cp config.py.example config.py
```
2. Modifica `config.py` con i parametri RPC/wallet del tuo nodo.
## Esecuzione
Mining parallelo (consigliato):
```bash
python launcher.py
```
Con numero processi esplicito:
```bash
python launcher.py -n 4
```
Single worker:
```bash
python main.py
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
View File
File renamed without changes.
View File
File renamed without changes.