Documentation ¶
Overview ¶
Package blockheader - current block header data
Index ¶
- func ClearCache()
- func DigestForBlock(number uint64) (blockdigest.Digest, error)
- func Finalise() error
- func Get() (uint64, blockdigest.Digest, uint16, uint64)
- func GetNew() (blockdigest.Digest, uint64)
- func Height() uint64
- func Initialise() error
- func Set(height uint64, digest blockdigest.Digest, version uint16, timestamp uint64)
- func SetGenesis()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCache ¶ added in v0.11.1
func ClearCache()
func DigestForBlock ¶ added in v0.10.1
func DigestForBlock(number uint64) (blockdigest.Digest, error)
DigestForBlock - return the digest for a specific block number
func GetNew ¶
func GetNew() (blockdigest.Digest, uint64)
GetNew - return block data for initialising a new block returns: previous block digest and the number for the new block
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.