Add runtime call [BabeApi_current_epoch] to retrieve current epochIndex and epochStartSlotNumber, which is used to derive the epochEndSlotNumber. All of these epoch details are added to EpochState and are updated constantly when there is BlockAnnounceMessage containing HeaderDigest
Implement a claimSlot method that verifies if the primary slot is claimable. If not, it should attempt to claim a secondary slot, selecting between a Plain or VRF slot
Add a method for handling secondary slot claims, with logic that checks if the network supports Plain secondary slots
Description
epochIndex
andepochStartSlotNumber
, which is used to derive theepochEndSlotNumber
. All of these epoch details are added toEpochState
and are updated constantly when there isBlockAnnounceMessage
containingHeaderDigest
claimSlot
method that verifies if the primary slot is claimable. If not, it should attempt to claim a secondary slot, selecting between a Plain or VRF slotFixes https://github.com/LimeChain/Fruzhin/issues/548