Skip to content

fix: retain proposer attestation data#78

Merged
ArtiomTr merged 1 commit intograndinetech:devnet-3from
Dsorken:aggregator-missing-root-fix
Mar 12, 2026
Merged

fix: retain proposer attestation data#78
ArtiomTr merged 1 commit intograndinetech:devnet-3from
Dsorken:aggregator-missing-root-fix

Conversation

@Dsorken
Copy link

@Dsorken Dsorken commented Mar 12, 2026

Fixes log warning:
WARN validator: Could not find attestation data for aggregation group data_root=...
found in lean/lean_client/validator/src/lib.rs maybe_aggregate

This log comes up when the client is an aggregator and propagates for every proposer_attestation_root in every slot where the client is an aggregator. For current devnet-3 testing in lean-quickstart the log continues to grow per slot until by slot 1000 the log message for slot 1000 is ~700 lines long and so on. After the fix all slot logs average around ~50 lines improving readability

The fix is to make the on_block() behavior in line with leanspec where both the proposer_attestation_root and actual proposer_attestation data are stored as opposed to just storing the proposer_attestation_root

https://github.com/leanEthereum/leanSpec/blob/main/src/lean_spec/subspecs/forkchoice/store.py
line 613-616:
sig = signed_block_with_attestation.signature.proposer_signature new_gossip_sigs.setdefault(proposer_attestation.data, set()).add( GossipSignatureEntry(proposer_attestation.validator_id, sig) )

Copy link
Collaborator

@ArtiomTr ArtiomTr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch! thank you for the contribution

@ArtiomTr ArtiomTr merged commit a227859 into grandinetech:devnet-3 Mar 12, 2026
0 of 3 checks passed
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