Skip to content

Add comprehensive reward and penalty simulation framework#56

Open
adamtka42 wants to merge 5 commits intocyyber:mainfrom
adamtka42:reward_and_penalty
Open

Add comprehensive reward and penalty simulation framework#56
adamtka42 wants to merge 5 commits intocyyber:mainfrom
adamtka42:reward_and_penalty

Conversation

@adamtka42
Copy link
Copy Markdown

What type of PR is this?

Feature

What does this PR do? Why is it needed?

This PR introduces a new simulation suite (reward_and_penalty package) to rigorously test and verify the economic mechanics of the Beacon Chain.

It adds a Simulator that runs state transitions using altair.ProcessEpoch with mock validators, allowing us to:

Simulate Multi-Epoch Scenarios: Track balance changes, total issuance, and burn over time.

Target Specific Validators: Configure specific validator indices to miss attestations while still participating in Sync Committees or Block Proposals.

Test Inactivity Leaks: Verify that penalties scale quadratically when the network fails to finalize (e.g., simulating 40% offline).

Detailed Reporting: Output granular statistics per validator (Attestation/Sync/Proposer rewards vs penalties) and global network stats in both Gwei and Zond.

This is needed to ensure the stability of the reward/penalty logic and to provide a tool for verifying economic parameters under stress conditions without running a full testnet.

@cyyber cyyber self-requested a review January 16, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants