blockchain

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadBlocksCacheNil = errors.New("badBlocksCache nil")

ErrBadBlocksCacheNil defines the error for using a nil cache for bad blocks

View Source
var ErrHeaderUnitNil = errors.New("header unit nil")

ErrHeaderUnitNil defines the error for using a nil storage unit for block headers

View Source
var ErrNilAppStatusHandler = errors.New("nil AppStatusHandler")

ErrNilAppStatusHandler defines the error for setting a nil AppStatusHandler

View Source
var ErrWrongTypeInSet = errors.New("wrong type in setter")

ErrWrongTypeInSet defines the error for trying to set the wrong type

Functions

func NewBlockChain

func NewBlockChain() *blockChain

NewBlockChain returns an initialized blockchain

func NewMetaChain

func NewMetaChain() *metaChain

NewMetaChain will initialize a new metachain instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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