⚙️ Proof of Stake Difficulty Adjustment in LanaCoin
🔁 Adjustment Frequency
- Every block: LanaCoin adjusts its PoS difficulty after each block is generated.
- This ensures that the network maintains its target block time of 5 minutes, regardless of how many wallets are staking or how much LANA is being staked.
📈 What Triggers Difficulty Changes?
The difficulty is adjusted based on:
- Time between blocks: If blocks are being generated too quickly, the difficulty increases.
- Staking activity: If more wallets are staking or more coins are active, the network becomes more competitive, and difficulty rises.
- Network weight: This is the total staking power of all wallets currently participating in PoS.
🧮 How It Works (Simplified)
- Block Time Target: 5 minutes (300 seconds)
- Actual Time Since Last Block:
- If it’s less than 5 minutes, the difficulty increases.
- If it’s more than 5 minutes, the difficulty decreases.
- The algorithm uses a retargeting formula to adjust the difficulty smoothly, avoiding large swings.
🔐 Why It Matters
- Security: Prevents rapid block generation that could destabilize the chain.
- Fairness: Ensures that no single staker or group can dominate block production.
- Stability: Keeps the blockchain predictable and reliable for users and developers.