Documentation ¶
Index ¶
- type 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) BestBlockHeader ¶
func (c *Chain) BestBlockHeader() *types.BlockHeader
func (*Chain) BestBlockHeight ¶
func (*Chain) GetBlockByHeight ¶
func (*Chain) GetHeaderByHash ¶
func (*Chain) GetHeaderByHeight ¶
func (c *Chain) GetHeaderByHeight(height uint64) (*types.BlockHeader, error)
func (*Chain) GetTransactionStatus ¶
func (*Chain) SetBestBlockHeader ¶
func (c *Chain) SetBestBlockHeader(header *types.BlockHeader)
func (*Chain) SetBlockByHeight ¶
Click to show internal directories.
Click to hide internal directories.