block

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2018 License: ISC Imports: 22 Imported by: 0

Documentation

Overview

current block data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDownToBlock added in v0.2.0

func DeleteDownToBlock(finalBlockNumber uint64) error

delete from current highest block down to and including the specified block

func DigestForBlock added in v0.2.0

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

func Finalise

func Finalise() error

shudown the block system

func Get

func Get() (blockdigest.Digest, uint64)

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

func GetHeight added in v0.2.0

func GetHeight() uint64

get the current height

func Initialise

func Initialise(recover bool) error

setup the current block data

func StoreIncoming added in v0.2.0

func StoreIncoming(packedBlock []byte) error

store an incoming block checking to make sure it is valid first

Types

This section is empty.

Jump to

Keyboard shortcuts

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