Skip to content

Commit 6b0fd0d

Browse files
tcoratgerunnawut
andauthored
Update src/lean_spec/subspecs/forkchoice/store.py
Co-authored-by: Unnawut Leepaisalsuwanna <921194+unnawut@users.noreply.github.com>
1 parent 69a799a commit 6b0fd0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/lean_spec/subspecs/forkchoice

src/lean_spec/subspecs/forkchoice/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def _compute_lmd_ghost_head(
545545
# Climb towards the anchor while staying inside the known tree.
546546
#
547547
# This naturally handles partial views and ongoing sync.
548-
while current_root in self.blocks and self.blocks[curr].slot > start_slot:
548+
while current_root in self.blocks and self.blocks[current_root].slot > start_slot:
549549
weights[current_root] += 1
550550
current_root = self.blocks[current_root].parent_root
551551

0 commit comments

Comments
 (0)