docs: update README for C build and launcher usage

This commit is contained in:
2026-03-30 01:07:25 +02:00
parent accaa5fbdb
commit 1f0b00c679

View File

@@ -1,4 +1,34 @@
# SHA-256 Miner (From Scratch, Python Starter)
# SHA-256 Miner (From Scratch, Python + C)
## C Rewrite (Modular)
This repository now includes a modular C implementation that mirrors the Python module split:
- `config.c/.h` + `miner.conf`
- `rpc.c/.h`
- `block_builder.c/.h`
- `miner.c/.h`
- `mining_loop.c/.h`
- `launcher.c`
- `main.c`
Build:
```bash
make
```
Run single worker:
```bash
./miner --config miner.conf
```
Run multiprocess launcher:
```bash
./launcher --config miner.conf -n 4
```
A clean, production-minded **starting point** for building SHA-256 miners from scratch.