Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/beacon_block_lodestar_classifier
https://github.com/dapplion/beacon_block_lodestar_classifier
Last synced: about 19 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dapplion/beacon_block_lodestar_classifier
- Owner: dapplion
- Created: 2023-08-26T06:26:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-26T06:44:35.000Z (over 1 year ago)
- Last Synced: 2024-12-28T06:47:54.369Z (10 days ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# beacon_block_lodestar_classifier
Emulates Lodestar attestation packing algorithm to guess if a block was produced by Lodestar or not
https://github.com/ChainSafe/lodestar/blob/1b40a919e3c5fc882588a1d0fd0c3adf755dc939/packages/beacon-node/src/chain/opPools/aggregatedAttestationPool.ts#L169
Summarized in rules:
- Define validator as already having participated as having the flag isTimelySouce == true
- Participation is computed from the state.participation at the attestation’s epoch
- There is at max two attestations in a block with the same data root
- Define score as `score = not_seen_attesters / (state.slot - slot)`
- Attestations are perfectly sorted in descending score order