Skip to content

Commit 69b0506

Browse files
committed
fix: linting
1 parent c8681f6 commit 69b0506

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/lean_spec/subspecs/forkchoice

src/lean_spec/subspecs/forkchoice/store.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,21 +437,21 @@ def on_block(self, signed_block_with_attestation: SignedBlockWithAttestation) ->
437437
# Execute state transition function to compute post-block state
438438
post_state = copy.deepcopy(parent_state).state_transition(block, valid_signatures)
439439

440-
# If the new post-state has a higher justified checkpoint, update the store's latest justified checkpoint.
440+
# If post-state has a higher justified checkpoint, update it to the store.
441441
latest_justified = (
442442
post_state.latest_justified
443443
if post_state.latest_justified.slot > self.latest_justified.slot
444444
else self.latest_justified
445445
)
446446

447-
# If the new post-state has a higher finalized checkpoint, update the store's latest finalized checkpoint.
447+
# If post-state has a higher finalized checkpoint, update it to the store.
448448
latest_finalized = (
449449
post_state.latest_finalized
450450
if post_state.latest_finalized.slot > self.latest_finalized.slot
451451
else self.latest_finalized
452452
)
453453

454-
# Create new store with block and state
454+
# Create new store with the computed data.
455455
store = self.model_copy(
456456
update={
457457
"blocks": self.blocks | {block_root: block},

0 commit comments

Comments
 (0)