Consensus Parameters & LWMA-1
Rogue Signal implements an institutional-grade consensus architecture designed to prevent timestamp manipulation, block withholding attacks, and violent hashrate oscillations.
📐 LWMA-1 Difficulty Adjustment Algorithm
Unlike Bitcoin's 2016-block difficulty window or Ethereum Classic's older difficulty bombs, Rogue Signal recalculates target difficulty on every single block using the LWMA-1 (Linearly Weighted Moving Average) algorithm with window N = 60:
Next Target = (Average Target * sum(i * delta_t_i)) / (0.5 * N * (N + 1) * T)
Where:
N = 60(The number of sample past blocks, ~30-minute observation window)T = 30s(Target block confirmation interval)delta_t_i = clamp(t_i - t_{i-1}, 1s, 6*T)(Clamped solve time differences between1sand180s)- Per-block difficulty adjustments are clamped between
67%(MaxClampDownFactor) and133%(MaxClampUpFactor) ofparent.Difficulty.
Why LWMA-1?
- Candidate Timestamp Independence: Block
Ndifficulty is computed exclusively from closed historical blocks (N-k .. N-1). A miner cannot manipulate their own candidateheader.Timeto lower their block's difficulty. - Deterministic Ancestor Verification: If any intermediate ancestor block in the LWMA-1 observation window is missing, the engine deterministically rejects verification with
consensus.ErrUnknownAncestorinstead of falling back to stale difficulty values. - Instant response: Adjusts smoothly to sudden hashing spikes or drops.
- Resistance to rental & flash-mining attacks: Hashpower rented for short intervals cannot game difficulty downward before leaving the network stranded.
⏱️ Strict Timestamp & Header Rules
To protect against "timewarp", difficulty manipulation, and header bloat attacks:
- MTP-11 (Past Median Time):
- The timestamp of block
Hmust be strictly greater than the median timestamp of the preceding 11 blocks (H-11throughH-1). During local block assembly (Prepare), if out-of-order timestamps causeparent.Time + 1 <= MTP-11, the node automatically advancesheader.Time = MTP-11 + 1.
- The timestamp of block
- Future Drift Limit:
- A candidate block's timestamp cannot exceed the local node's current wall-clock time by more than 30 seconds. Blocks drifting further into the future are rejected.
- Header
ExtraDataCap (64 bytes) & Two-Phase Parallel Verification:header.Extrais strictly capped at64 bytes(MaxExtraDataSize).VerifyHeadersvalidates lightweight header rules in microseconds before dispatching RandomXVerifySealacrossruntime.NumCPU()parallel workers.
- Strict Uncle Block Prohibition (
UncleHash == EmptyUncleHash):header.UncleHashmust strictly equaltypes.EmptyUncleHash. Rogue Signal adopts the pure Bitcoin single-chain tree model (ErrUnclesNotAllowed), eliminating uncle malleability and uncle-grinding vulnerabilities.
🛡️ Anti-51% Finality
- ECBP-1100 (MESS) from Block 0:
- Late secret forks face a cubic polynomial gravity penalty requiring up to
31xthe local subchain difficulty. - Calibrated with a 15-minute safety interval (
artificialFinalitySafetyInterval = 900s, representing 30 blocks $\times$ 30s) to prevent false stale-chain detections during normal PoW block variance.
- Late secret forks face a cubic polynomial gravity penalty requiring up to
- Anti-Selfish Mining Tie-Breaking:
- Equal-difficulty ties preserve locally mined blocks or break external ties via cryptographic 50/50 randomization (
crypto/rand).
- Equal-difficulty ties preserve locally mined blocks or break external ties via cryptographic 50/50 randomization (
💰 Emission Schedule & Halving
- Initial Block Reward: 25 ROGUE
- Halving Cadence: Every 2,000,000 blocks (~1.90 years / ~694.44 days at 30s per block)
- Miner Share (95%): 23.75 ROGUE initially (+ 100% of block transaction fees)
- Treasury Share (5%): 1.25 ROGUE initially
- Total Supply Cap: 100,000,000 ROGUE (exact geometric limit across 32 halving eras:
25 * 2,000,000 * 2 = 100,000,000 ROGUE, zero tail emission). On the final block of each halving era (blockNumber % 2,000,000 == 0),EraRemainderWei(727,595,761,750,000wei) is added to compensate integer bit-shift truncation so cumulative supply equals100,000,000.000000000000000000 ROGUEto the exact wei. - Transaction Format: Legacy (
Type 0) transactions with strict EIP-155 replay protection from Block 0 (EIP-2718/1559/2930/4844 typed transactions are rejected).
🏆 Protocol Gamification & Miner Experience Tiers
To encourage sustainable, decentralized home solo-mining without altering the network monetary cap or consensus difficulty, Rogue Signal tracks miner block counts natively inside the canonical state trie:
- System Contract (
RogueMinerReputation): Deployed natively at Block 0 (Genesis.Alloc) at address0x0000000000000000000000000000000000000020withNonce = 1(surviving EIP-158 empty-account pruning) and initialOwnableowner set toRogueTreasuryAddress(0xe9aaE535B7971A9AC8C6af0e4B524D02260D3a03). - State Persistence: Incremented upon block finalization in
core/state_processor.gousing Soliditymapping(address => uint256)storage slot1:keccak256(abi.encode(miner, uint256(1))). - Single Source of Truth: Ranks, thresholds,
progressBps, localized titles (en,es,zh, expandable by governance), and badge URIs are computed directly on-chain byRogueMinerReputationand readable viaeth_callorSTATICCALLfrom any smart contract. - Deterministic Reorg Safety: Chain reorganizations under
ECBP-1100 (MESS)automatically unwind miner block counts with the reverted chain blocks.
Miner Level Showcase







Progression Specifications
| Medal | Level | Title | Blocks Mined | Target XP |
|---|---|---|---|---|
![]() | Level 0 | Unranked Runner | 0 | 1 |
![]() | Level 1 | Recon Runner | 1 – 24 | 25 |
![]() | Level 2 | Signal Scraper | 25 – 99 | 100 |
![]() | Level 3 | Hash Warden | 100 – 499 | 500 |
![]() | Level 4 | Cipher Architect | 500 – 2,499 | 2,500 |
![]() | Level 5 | Apex Operator | 2,500 – 9,999 | 10,000 |
![]() | Level 6 | Rogue Singularity | 10,000+ | 10,000 (Max) |
Click on any medal in the gallery or the table to inspect its full-resolution cyberpunk artwork, tier requirements, and lore metadata.