A mining client for the DERO blockchain, written in C.
- Multi-threaded Mining — Configurable thread count (1-64) for maximum CPU utilization
- CPU Affinity — Optional core pinning for consistent performance and reduced context switching
- Hardware Optimization — Runtime CPU detection with SSE4.1 SIMD support for Salsa20
- GCC compiler
- OpenSSL dev libraries (
libssl-dev) - cJSON (
libcjson-dev) - GMP (
libgmp-dev) - Linux with POSIX threads
make clean && make./cminer -n pool.example.com:10100 -w dero1qyf5nzqyf5nzqyf5nzqyf5nz... -t 8 -aArguments:
-n <node>— Mining pool address (required)-w <wallet>— DERO wallet address (required)-t <threads>— Worker threads (default: 1, max: 64)-a— Enable CPU affinity binding (optional)
On startup, the miner detects and displays which implementation will be used:
Salsa20: Using SSE4.1-optimized implementation
Falls back to portable C implementation on systems without SSE4.1 support.
AstroBWT v3 — Employs libdivsufsort for fast suffix array construction.
| Library | Version | Purpose |
|---|---|---|
| OpenSSL | Any | TLS/SSL for secure communication and hash functions |
| cJSON | Any | JSON parsing |
| GMP | Any | Arbitrary precision arithmetic for PoW verification |
| Pthreads | POSIX | Multi-threading support |
- OS: Linux (x86-64, ARM64)
- Compiler: GCC