blockchain

package
v1.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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 ErrNilBlockChain = errors.New("nil block chain")

ErrNilBlockChain signals that a nil blockchain has been provided

View Source
var ErrOperationNotPermitted = errors.New("operation not permitted")

ErrOperationNotPermitted signals that operation is not permitted

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(appStatusHandler core.AppStatusHandler) (*blockChain, error)

NewBlockChain returns an initialized blockchain

func NewBootstrapBlockchain

func NewBootstrapBlockchain() *bootstrapBlockchain

NewBootstrapBlockchain returns a new instance of bootstrapBlockchain It should be used for bootstrap only!

func NewMetaChain

func NewMetaChain(appStatusHandler core.AppStatusHandler) (*metaChain, error)

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