Skip to content

Commit

Permalink
Link
Browse files Browse the repository at this point in the history
  • Loading branch information
hweawer committed Jan 22, 2025
1 parent 1ea6a20 commit 7f5ae60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/web3converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@


def epoch_from_slot(slot: SlotNumber, slots_per_epoch: int) -> EpochNumber:
"""
https://github.com/ethereum/consensus-specs/blob/dev/specs/phase0/beacon-chain.md#compute_epoch_at_slot
"""
return EpochNumber(slot // slots_per_epoch)


Expand Down

0 comments on commit 7f5ae60

Please sign in to comment.