A high-performance Bitcoin mining framework featuring hybrid CPU acceleration, VirtualASIC integration, and advanced batch hashing pipelines.
Designed for experimentation, optimization, and high-throughput SHA-256d mining using both software and hardware-accelerated techniques.
- Optimized SHA-256d hashing pipeline
- VirtualASIC acceleration support
- Batch hashing for increased throughput
- Hybrid CPU execution model
- Native VirtualASIC DLL support
- Kernel-based hashing execution
- Candidate merge optimization
- Dynamic core utilization
- Parallel CPU hashing lanes
- Enhanced throughput without DLL modification
- Load-balanced hashing pipeline
- Scalable thread configuration
- Efficient nonce generation and distribution
- Batch candidate processing
- Reduced redundant computations
- Optimized work scheduling
- Stratum protocol compatibility
- Pool mining support
- Flexible job handling
- Low-latency submission pipeline
- Real-time hashrate tracking
- Accepted/rejected share stats
- Worker status reporting
- Debug and performance logs
โโโโโโโโโโโโโโโโโโโโโโ
โ Stratum Server โ
โ (Mining Pool) โ
โโโโโโโโโโโฌโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโ
โ Job Manager โ
โโโโโโโโโโโฌโโโโโโโโโโโ
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Work Generator โ
โ (Nonce Distribution) โ
โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโดโโโโโโโโโโ
โผ โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ CPU Lane 1 โ โ CPU Lane 2 โ
โ (Hashing) โ โ (Hashing) โ
โโโโโโโโฌโโโโโโโโ โโโโโโโโฌโโโโโโโโ
โ โ
โผ โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ VirtualASIC Engine โ
โ (Kernel Execution) โ
โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Share Validation โ
โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Share Submission โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
bitcoinminer/
โโโ miner_core.py # Main mining pipeline
โโโ btc_virtualasic.py # VirtualASIC integration
โโโ btc_stratum.py # Stratum protocol client
โโโ btc_models.py # Data models (jobs, shares)
โโโ btc_native.py # Native bridge / DLL interaction
โโโ config.py # Configuration
โโโ utils/ # Utilities
โโโ logs/ # Runtime logs
- Python 3.10+
- Windows (recommended)
- VirtualASIC DLL
- OpenCL (optional, depending on setup)
git clone https://github.com/nate2211/bitcoinminer.git
cd bitcoinminer
pip install -r requirements.txtExample configuration:
POOL_URL = "stratum+tcp://127.0.0.1:3333"
WALLET = "YOUR_BTC_WALLET"
WORKER_NAME = "worker1"
THREADS = 8
ENABLE_DUAL_LANE = True
VIRTUAL_ASIC_DLL = "VirtualASIC.dll"
ENABLE_VIRTUAL_ASIC = Truepython miner_core.py- Increase
THREADSfor higher throughput - Enable dual-lane mode for parallel hashing
- Ensure DLL is properly loaded
- Tune kernel parameters if available
- Monitor CPU/GPU utilization
- Keep system cooled properly
- Avoid CPU throttling
- Balance workload between lanes
Runs multiple hashing lanes simultaneously for improved performance.
Processes multiple nonces at once to maximize efficiency.
Combines multiple hashing results to reduce overhead.
Supports multiple pool configurations and job formats.
- Best performance achieved with VirtualASIC enabled
- Dual-lane CPU significantly improves throughput
- Batch processing reduces overhead per hash
This project is for educational and experimental purposes.
Mining Bitcoin may require significant computational resources and electricity.
MIT License
Nathan Andrew McDonald
GitHub: https://github.com/nate2211
Pull requests are welcome.
For major changes, open an issue first to discuss what you'd like to change.