ChainSafe / ChainSafe/ProtoBanshee

Casper circuit: finality calculation

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

To implement (in-circuit) finality calculations to justify/finalize `target_epoch`. This involves:
1. calculating the `total_active_balance` of all _active_ validators.
2. calculating the `total_effective_balance` of all _attested_ validators.
3. checking that `total_effective_balance >= 2/3 * total_active_balance`

### [Spec](https://hackmd.io/@timofey/rks1Y7BL3)

### References
- https://github.com/ChainSafe/Zipline/blob/main/zipline-verifier/src/verify.rs#L163

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.