File tree Expand file tree Collapse file tree
src/lean_spec/subspecs/forkchoice Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -540,14 +540,14 @@ def _compute_lmd_ghost_head(
540540 #
541541 # Each visited block accumulates one unit of weight from that validator.
542542 for attestation in attestations .values ():
543- curr = attestation .message .data .head .root
543+ current_root = attestation .message .data .head .root
544544
545545 # Climb towards the anchor while staying inside the known tree.
546546 #
547547 # This naturally handles partial views and ongoing sync.
548- while curr in self .blocks and self .blocks [curr ].slot > start_slot :
549- weights [curr ] += 1
550- curr = self .blocks [curr ].parent_root
548+ while current_root in self .blocks and self .blocks [curr ].slot > start_slot :
549+ weights [current_root ] += 1
550+ current_root = self .blocks [current_root ].parent_root
551551
552552 # Build the adjacency tree (parent -> children).
553553 #
You can’t perform that action at this time.
0 commit comments