(started 02.02.2020)
based on Forrest Voight (https://github.com/forrestv) concept and python code (https://github.com/p2pool/p2pool)
Bitcoin wiki page - https://en.bitcoin.it/wiki/P2Pool
Bitcointalk forum thread - https://bitcointalk.org/index.php?topic=18313
Some technical details - https://bitcointalk.org/index.php?topic=457574
C2Pool has been completely refactored with enhanced features and clear terminology separation:
- π Share Type Separation - Clear distinction between:
mining_shares
- From physical miners via Stratum protocolp2p_shares
- From cross-node P2Pool communication
- β‘ Automatic Difficulty Adjustment (VARDIFF) - Dynamic mining difficulty
- π Real-time Hashrate Tracking - Accurate performance monitoring
- πΎ Persistent Storage - LevelDB-based sharechain persistence
- π Web Interface - JSON-RPC mining interface with monitoring
- π Blockchain-specific Address Validation - Multi-coin support
- π Enhanced Statistics - Separated mining vs P2P metrics
hashrate/
- Real-time hashrate tracking with mining_share metricsdifficulty/
- Automatic difficulty adjustment enginestorage/
- Persistent LevelDB sharechain storagenode/
- Enhanced C2Pool node implementationarchive/
- Legacy code archive (for reference only)
git clone https://github.com/username/c2pool.git
cd c2pool
mkdir build && cd build
cmake ..
make c2pool # Primary executable (refactored)
make c2pool_enhanced # Explicit enhanced version
# Integrated mining pool for Litecoin testnet
./c2pool --integrated 0.0.0.0:8084 --blockchain ltc --testnet
# Enhanced sharechain node
./c2pool --sharechain --testnet --port 9333
# Help
./c2pool --help
- Primary Entry Point:
src/c2pool/c2pool_refactored.cpp
- Build Targets:
c2pool
(primary),c2pool_enhanced
(explicit) - Legacy Files: Archived in
archive/
directory for reference
mkdir -p build && cd build
cmake ..
make c2pool_enhanced -j4
./src/c2pool/c2pool_enhanced --testnet --integrated 0.0.0.0:8083
Access web interface at: http://localhost:8083
./src/c2pool/c2pool_enhanced --testnet --sharechain
./src/c2pool/c2pool_enhanced --help
- β Automatic difficulty adjustment (VARDIFF)
- β Real-time hashrate tracking
- β Legacy share tracker compatibility
- β LevelDB persistent storage
- β JSON-RPC mining interface
- β WebUI for monitoring
See REFACTORING_SUMMARY.md for detailed technical information.