blockheader

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: ISC Imports: 6 Imported by: 0

Documentation

Overview

current block header data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Finalise

func Finalise() error

shutdown the block header system

func Get

return all header data

func GetNew

func GetNew() (blockdigest.Digest, uint64)

get block data for initialising a new block returns: previous block digest and the number for the new block

func Height

func Height() uint64

current height

func Initialise

func Initialise() error

setup the current block data

func Set

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

set all data

func SetGenesis

func 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