Documentation ¶
Index ¶
- Variables
- func NewCrosschainTx(privateKey string) *types.Tx
- 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) LastIrreversibleHeader() *types.BlockHeader
- func (c *Chain) ProcessBlock(block *types.Block) (bool, error)
- func (c *Chain) ProcessBlockSignature(signature, pubkey []byte, blockHash *bc.Hash) error
- func (c *Chain) SetBestBlockHeader(header *types.BlockHeader)
- func (c *Chain) SetBlockByHeight(height uint64, block *types.Block)
- func (c *Chain) ValidateTx(tx *types.Tx) (bool, error)
- type Mempool
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFoundHeaderByHash = errors.New("can't find header by hash") ErrFoundHeaderByHeight = errors.New("can't find header by height") )
Functions ¶
func NewCrosschainTx ¶ added in v0.2.0
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) LastIrreversibleHeader ¶ added in v0.3.0
func (c *Chain) LastIrreversibleHeader() *types.BlockHeader
func (*Chain) ProcessBlockSignature ¶ added in v1.0.2
TODO:
func (*Chain) SetBestBlockHeader ¶
func (c *Chain) SetBestBlockHeader(header *types.BlockHeader)
func (*Chain) SetBlockByHeight ¶
type Mempool ¶
type Mempool struct {
// contains filtered or unexported fields
}
func (*Mempool) GetTransactions ¶
Click to show internal directories.
Click to hide internal directories.