Documentation
¶
Index ¶
- func NewAPIBlockstore(cio ChainIO) blockstore.Blockstore
- func NewAccountAPI(chain *ChainSubmodule) apiface.IAccount
- func NewActorAPI(chain *ChainSubmodule) apiface.IActor
- func NewBeaconAPI(chain *ChainSubmodule) apiface.IBeacon
- func NewChainInfoAPI(chain *ChainSubmodule) apiface.IChainInfo
- func NewMinerStateAPI(chain *ChainSubmodule) apiface.IMinerState
- type ChainIO
- type ChainSubmodule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIBlockstore ¶
func NewAPIBlockstore(cio ChainIO) blockstore.Blockstore
NewAPIBlockstore create new blockstore api
func NewAccountAPI ¶
func NewAccountAPI(chain *ChainSubmodule) apiface.IAccount
NewAccountAPI create a new account api
func NewBeaconAPI ¶
func NewBeaconAPI(chain *ChainSubmodule) apiface.IBeacon
NewBeaconAPI create new beacon api
func NewChainInfoAPI ¶
func NewChainInfoAPI(chain *ChainSubmodule) apiface.IChainInfo
NewChainInfoAPI new chain info api
func NewMinerStateAPI ¶
func NewMinerStateAPI(chain *ChainSubmodule) apiface.IMinerState
NewMinerStateAPI create miner state api
Types ¶
type ChainSubmodule ¶
type ChainSubmodule struct { ChainReader *chain.Store MessageStore *chain.MessageStore Sampler *chain.Sampler Processor *consensus.DefaultProcessor Fork fork.IFork SystemCall vm.SyscallsImpl CheckPoint types.TipSetKey Drand beacon.Schedule // Wait for confirm message Waiter *chain.Waiter // contains filtered or unexported fields }
ChainSubmodule enhances the `Node` with chain capabilities.
func NewChainSubmodule ¶
func NewChainSubmodule(ctx context.Context, config chainConfig, repo chainRepo, blockstore *blockstore.BlockstoreSubmodule, verifier ffiwrapper.Verifier, ) (*ChainSubmodule, error)
NewChainSubmodule creates a new chain submodule.
func (*ChainSubmodule) API ¶
func (chain *ChainSubmodule) API() apiface.IChain
API chain module api implement
func (*ChainSubmodule) Start ¶
func (chain *ChainSubmodule) Start(ctx context.Context) error
Start loads the chain from disk.
func (*ChainSubmodule) Stop ¶
func (chain *ChainSubmodule) Stop(ctx context.Context)
Stop stop the chain head event
func (*ChainSubmodule) V0API ¶ added in v0.9.7
func (chain *ChainSubmodule) V0API() v0api.IChain
Source Files
¶
Click to show internal directories.
Click to hide internal directories.