Documentation ¶
Index ¶
- func AppendHeader2Main(native *native.NativeService, height uint64, txHash []byte, chainID uint64) error
- func GetCurrentTxHeader(native *native.NativeService, chainId uint64) (*core.TxBlock, error)
- func GetCurrentTxHeaderHeight(native *native.NativeService, chainID uint64) (uint64, error)
- func GetDsHeaderByHash(native *native.NativeService, hash []byte, chainID uint64) (*core.DsBlock, error)
- func GetTxHeaderByHash(native *native.NativeService, hash []byte, chainID uint64) (*core.TxBlock, error)
- func GetTxHeaderByHeight(native *native.NativeService, height, chainID uint64) (*core.TxBlock, error)
- func IsHeaderExist(native *native.NativeService, hash []byte, chainID uint64) (bool, error)
- type ExtraInfo
- type Handler
- type TxBlockAndDsComm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendHeader2Main ¶
func GetCurrentTxHeader ¶
func GetCurrentTxHeaderHeight ¶
func GetCurrentTxHeaderHeight(native *native.NativeService, chainID uint64) (uint64, error)
func GetDsHeaderByHash ¶
func GetTxHeaderByHash ¶
func GetTxHeaderByHeight ¶
func IsHeaderExist ¶
Types ¶
type Handler ¶
type Handler struct { }
Handler ...
func (*Handler) SyncBlockHeader ¶
func (h *Handler) SyncBlockHeader(native *native.NativeService) error
SyncBlockHeader ...
func (*Handler) SyncCrossChainMsg ¶
func (h *Handler) SyncCrossChainMsg(native *native.NativeService) error
SyncCrossChainMsg ...
func (*Handler) SyncGenesisHeader ¶
func (h *Handler) SyncGenesisHeader(native *native.NativeService) (err error)
SyncGenesisHeader ...
type TxBlockAndDsComm ¶
Click to show internal directories.
Click to hide internal directories.