blockheader

package
v0.11.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: ISC Imports: 9 Imported by: 0

Documentation

Overview

Package blockheader - current block header data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DigestForBlock added in v0.10.1

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

DigestForBlock - return the digest for a specific block number

func Finalise

func Finalise() error

Finalise - shutdown the block header system

func Get

Get - return all header data

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

func Height

func Height() uint64

Height - return current height

func Initialise

func Initialise() error

Initialise - setup the current block data

func Set

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

Set - set current header data

func SetGenesis

func SetGenesis()

SetGenesis - reset the block data

Types

This section is empty.

Jump to

Keyboard shortcuts

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