bitmarkd: github.com/bitmark-inc/bitmarkd/blockheader Index | Files

package blockheader

import "github.com/bitmark-inc/bitmarkd/blockheader"

Package blockheader - current block header data

Index

Package Files

doc.go get.go setup.go

func ClearCache Uses

func ClearCache()

func DigestForBlock Uses

func DigestForBlock(number uint64) (blockdigest.Digest, error)

DigestForBlock - return the digest for a specific block number

func Finalise Uses

func Finalise() error

Finalise - shutdown the block header system

func Get Uses

func Get() (uint64, blockdigest.Digest, uint16, uint64)

Get - return all header data

func GetNew Uses

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

func Height Uses

func Height() uint64

Height - return current height

func Initialise Uses

func Initialise() error

Initialise - setup the current block data

func Set Uses

func Set(height uint64, digest blockdigest.Digest, version uint16, timestamp uint64)

Set - set current header data

func SetGenesis Uses

func SetGenesis()

SetGenesis - reset the block data

Package blockheader imports 9 packages (graph) and is imported by 14 packages. Updated 2020-04-05. Refresh now. Tools for package owners.