docs: update README for C build and launcher usage
This commit is contained in:
32
README.md
32
README.md
@@ -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.
|
A clean, production-minded **starting point** for building SHA-256 miners from scratch.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user