func (b *Blockchain) GetCurrentSlot() uint64 {
	currentTime := uint64(utils.Now().Unix())

	timeSinceGenesis := currentTime - b.stateManager.GetGenesisTime()

	return timeSinceGenesis / uint64(b.config.SlotDuration)
}
// GetCurrentSlot gets the current slot according to the time.
GetCurrentSlot gets the current slot according to the time.
// GetCurrentSlot gets the current slot according to the time .
func (b *Blockchain) GetCurrentSlot() uint64 {
	currentTime := uint64(utils.Now().Unix())
	timeSinceGenesis := currentTime - b.stateManager.GetGenesisTime()
	return timeSinceGenesis / uint64(b.config.SlotDuration)
}
func ( b * Blockchain ) GetCurrentSlot ( ) uint64 { currentTime := uint64 ( utils . Now ( ) . Unix ( ) ) timeSinceGenesis := currentTime - b . stateManager . GetGenesisTime ( ) return timeSinceGenesis / uint64 ( b . config . SlotDuration ) }
GetCurrentSlot gets the current slot according to the time.
GetCurrentSlot gets the current slot according to the time .