Versions in this module Expand all Collapse all v1 v1.1.2 Sep 16, 2021 Changes in this version + type Chain struct + func NewChain() *Chain + func (c *Chain) BestBlockHeader() *types.BlockHeader + func (c *Chain) BestBlockHeight() uint64 + func (c *Chain) CalcNextSeed(hash *bc.Hash) (*bc.Hash, error) + func (c *Chain) GetBlockByHash(hash *bc.Hash) (*types.Block, error) + func (c *Chain) GetBlockByHeight(height uint64) (*types.Block, error) + func (c *Chain) GetHeaderByHash(hash *bc.Hash) (*types.BlockHeader, error) + func (c *Chain) GetHeaderByHeight(height uint64) (*types.BlockHeader, error) + func (c *Chain) GetTransactionStatus(hash *bc.Hash) (*bc.TransactionStatus, error) + func (c *Chain) InMainChain(hash bc.Hash) bool + func (c *Chain) ProcessBlock(block *types.Block) (bool, error) + func (c *Chain) SetBestBlockHeader(header *types.BlockHeader) + func (c *Chain) SetBlockByHeight(height uint64, block *types.Block) + func (c *Chain) ValidateTx(*types.Tx) (bool, error)