440badd973
## Proposed Changes Add tooling to lcli to provide a way to measure the attestation packing efficiency of historical blocks by querying a beacon node API endpoint. ## Additional Info Since block rewards are proportional to the number of unique attestations included in the block, a measure of efficiency can be calculated by comparing the number of unique attestations that could have been included into a block vs the number of unique attestations that were actually included. This lcli tool provides the following data per block: - Slot Number - Proposer Index and Grafitti (if any) - Available Unique Attestations - Included Unique Attestations - Best-effort estimate of the number of offline validators for the epoch. This means we can normalize the calculated efficiency, removing offline validators from the available attestation set. The data is outputted as a csv file. ## Usage Install lcli: ``` make install-lcli ``` Alternatively install with the `fake_crypto` feature to skip signature verification which improves performance: ``` cargo install --path lcli --features=fake_crypto --force --locked ``` Ensure a Lighthouse beacon node is running and synced. A non-default API endpoint can be passed with the `--endpoint` flag. Run: ``` lcli etl-block-efficiency --output /path/to/output.csv --start-epoch 40 --end-epoch 80 ``` |
||
---|---|---|
.. | ||
etl | ||
change_genesis_time.rs | ||
check_deposit_data.rs | ||
deploy_deposit_contract.rs | ||
eth1_genesis.rs | ||
generate_bootnode_enr.rs | ||
insecure_validators.rs | ||
interop_genesis.rs | ||
main.rs | ||
new_testnet.rs | ||
parse_ssz.rs | ||
replace_state_pubkeys.rs | ||
skip_slots.rs | ||
transition_blocks.rs |