How wamcoin-core-dev/wam-coin works
WAM Coin is a Bitcoin Core fork whose distinctive product is a CPU-mineable proof-of-work currency, surrounded by reference mining, pool, network-dashboard, and announcement tools. The main workflow is miners connecting to a Stratum pool or mining solo, producing RandomX work, and having the chain validate blocks under WAM’s consensus rules. The graph also preserves the pool’s share accounting and payouts, network monitoring, and announcements. Several consensus and pool internals are unsampled; those capabilities and relationships are included only where the README or source index supports them.
Main entry points: pool/server.js Pool orchestration · explorer/server.js Dashboard server · main.cpp CPU miner · shareProcessor.js Share accounting
Components 34
Chain consensus
- Network identity
src/wam/chainparams.cpp - Monetary parameters
src/wam/wam-params.h - Subsidy schedule
src/wam/consensus/subsidy.cpp - Treasury rule
src/wam/consensus/devfee.cpp - Difficulty rules
src/wam/pow.cpp - RandomX proof of work
src/wam/crypto/randomx_hash.cpp - WAM RPC methods
src/wam/rpc/wam_rpc.cpp
Mining
- CPU miner
miner/src/main.cpp - RandomX engine
miner/src/randomx_engine.h - Solo mining
miner/src/solo.h - Stratum client
miner/src/stratum.h
Pool operations
- Pool orchestration
pool/server.js - Stratum server
pool/lib/stratumServer.js - Job management
pool/lib/jobManager.js - Block templates
pool/lib/blockTemplate.js - RandomX addon
pool/native/index.js - Share accounting
pool/lib/shareProcessor.js - Payout calculation
pool/lib/rewards.js - Node RPC client
pool/lib/daemon.js - Pool API
pool/lib/api.js
Network visibility
- Dashboard server
explorer/server.js - Chain collector
explorer/lib/collector.js - Node RPC client
explorer/lib/rpc.js - Peer network view
explorer/lib/network.js - Seed monitoring
explorer/lib/seeds.js - Mining concentration
explorer/lib/concentration.js - Dashboard UI
explorer/web/app.js
Communications
- Announcement bot
bots/announce.js - Node and release clients
bots/lib/clients.js - Channel sinks
bots/lib/sinks.js
Other components
- Redis
- Miner
- Dashboard user
- Channel audience
Connections 32
- Miner → CPU miner: runs
miner/src/main.cpp - CPU miner → Stratum client: uses Stratum
miner/src/main.cpp - CPU miner → RandomX engine: hashes with
miner/src/main.cpp - CPU miner → Solo mining: mines solo
miner/src/main.cpp - Pool orchestration → Stratum server: starts
pool/server.js - Pool orchestration → Job management: starts
pool/server.js - Pool orchestration → Share accounting: starts
pool/server.js - Pool orchestration → Node RPC client: configures
pool/server.js - Pool orchestration → Pool API: starts
pool/server.js - Pool orchestration → Redis: connects to
pool/server.js - Job management → Block templates: builds
pool/lib/jobManager.js - Job management → RandomX addon: hashes shares
pool/lib/jobManager.js - Share accounting → Payout calculation: calculates payouts
pool/lib/shareProcessor.js - Share accounting → Node RPC client: checks wallet
pool/lib/shareProcessor.js - Share accounting → Redis: reads and writes
pool/lib/shareProcessor.js - CPU miner → Pool orchestration: submits work
- CPU miner → Network identity: selects network
- Network identity → Monetary parameters: defines parameters
- Monetary parameters → Subsidy schedule: sets emission
- Monetary parameters → Treasury rule: sets fee rule
- Difficulty rules → RandomX proof of work: sets proof rules
- Dashboard server → Chain collector: serves snapshot
explorer/server.js - Dashboard server → Node RPC client: configures
explorer/server.js - Dashboard server → Peer network view: builds network view
explorer/server.js - Dashboard server → Seed monitoring: updates and reads
explorer/server.js - Dashboard server → Mining concentration: uses
explorer/server.js - Chain collector → Node RPC client: queries node
explorer/lib/collector.js - Dashboard user → Dashboard server: requests dashboard
README.md - Dashboard server → Dashboard UI: serves dashboard
- Announcement bot → Node and release clients: reads chain data
bots/announce.js - Announcement bot → Channel sinks: publishes messages
bots/announce.js - Channel audience → Channel sinks: receives updates