chainctx

package
v0.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBeaconChain

func NewBeaconChain(params *chaincfg.Params) *beaconChain

nolint: golint, revive

func ShardChain

func ShardChain(shardID uint32, params *chaincfg.Params, beaconBlock *wire.MsgBlock, height int32) *shardChain

nolint: golint, revive

Types

type IChainCtx

type IChainCtx interface {
	wire.HeaderConstructor

	Name() string
	Params() *chaincfg.Params
	GenesisBlock() *wire.MsgBlock
	GenesisBeaconHeight() int32

	NewNode(blockHeader wire.BlockHeader, parent blocknodes.IBlockNode, serialID int64) blocknodes.IBlockNode
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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