utils

package
v0.0.0-...-cdf0fd8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockTimeInDay

func GetBlockTimeInDay(db *database.Db) (*types.BlockTime, error)

func GetBlockTimeInHour

func GetBlockTimeInHour(db *database.Db) (*types.BlockTime, error)

func GetBlockTimeInMinute

func GetBlockTimeInMinute(db *database.Db) (*types.BlockTime, error)

GetBlockTimeInMinute get last block in db and get the block time in minute

func GetGenesisBlockTime

func GetGenesisBlockTime(db *database.Db, block flow.Block) (*types.BlockTime, error)

GetGenesisBlockTime get the genesis block from db and calculate block time using latest block

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL