LimeChain / Fruzhin

Java implementation of the Polkadot Host
Apache License 2.0
33 stars 1 forks source link

Epoch Index Calculation and Genesis Slot Number Retrieval #593

Closed nistanimirov closed 2 weeks ago

nistanimirov commented 3 weeks ago

This task involves calculating the epoch index using the formula (currentSlotNumber - genesisSlotNumber) / epochLength. To enable this, we need to implement a mechanism to retrieve the genesisSlotNumber from runtime storage using the genesis slot hash.