From 662ca2f9a2d5a99a3ee6a8031642db386d16fce2 Mon Sep 17 00:00:00 2001 From: Pablo Deymonnaz Date: Fri, 13 Mar 2026 16:07:26 -0300 Subject: [PATCH] Fix intervals per slot in CLAUDE.md from 4 to 5 The spec and the Rust code both use 5 intervals per slot (0-4), but CLAUDE.md documented only 4 (0-3) with incorrect descriptions. Update the tick-based validator duties section and the attestation pipeline interval references to match the actual implementation. --- CLAUDE.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 7506597..b225afc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -45,18 +45,19 @@ crates/ - Communication via `mpsc::unbounded_channel` - Shared storage via `Arc` (clone Store, share backend) -### Tick-Based Validator Duties (4-second slots, 4 intervals per slot) +### Tick-Based Validator Duties (4-second slots, 5 intervals per slot) ``` -Interval 0: Proposer check → accept attestations → build/publish block -Interval 1: Non-proposers produce attestations -Interval 2: Safe target update (fork choice with 2/3 threshold) -Interval 3: Accept accumulated attestations +Interval 0: Block proposal → accept attestations if proposal exists +Interval 1: Vote propagation (no action) +Interval 2: Aggregation (aggregators create proofs from gossip signatures) +Interval 3: Safe target update (fork choice) +Interval 4: Accept accumulated attestations ``` ### Attestation Pipeline ``` Gossip → Signature verification → new_attestations (pending) - ↓ (intervals 0/3) + ↓ (intervals 0/4) promote → known_attestations (fork choice active) ↓ Fork choice head update