Skip to content

Add frequent node logging: attestations, blocks, justified/finalized, peers#432

Merged
ch4r10t33r merged 3 commits intoleanEthereum:mainfrom
ch4r10t33r:pr-logging
Mar 2, 2026
Merged

Add frequent node logging: attestations, blocks, justified/finalized, peers#432
ch4r10t33r merged 3 commits intoleanEthereum:mainfrom
ch4r10t33r:pr-logging

Conversation

@ch4r10t33r
Copy link
Collaborator

Adds observability logging to the leanSpec node:

  • Blocks: INFO when a block is received (peer, slot) and when processed (slot, root, peer)
  • Attestations: INFO when received (peer, slot, validator); INFO on validation/signature success, WARNING on failure
  • Aggregated attestations: Same pattern with optional peer_id
  • Periodic status (every 10s): Peers count, justified slot/root, finalized slot/root

Sync service accepts optional peer_id on on_gossip_attestation and on_gossip_aggregated_attestation; network service passes peer_id from gossip events so logs show the propagating peer.

… peers

- Sync: log block received/processed with peer and slot; log attestation and
  aggregated attestation with peer, slot, validator and validation/signature result
- Sync: optional peer_id on on_gossip_attestation and on_gossip_aggregated_attestation
- Network: pass peer_id from gossip events to sync handlers
- Node: periodic (10s) log of justified slot, finalized slot, and connected peers count
- sync: block processed log uses full block_root.hex()
- node: periodic status logs full justified/finalized roots; remove truncation comment
@ch4r10t33r ch4r10t33r merged commit 44f896a into leanEthereum:main Mar 2, 2026
12 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