zilliqa

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2022 License: LGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendHeader2Main

func AppendHeader2Main(native *native.NativeService, height uint64, txHash []byte, chainID uint64) error

func GetCurrentTxHeader

func GetCurrentTxHeader(native *native.NativeService, chainId uint64) (*core.TxBlock, error)

func GetCurrentTxHeaderHeight

func GetCurrentTxHeaderHeight(native *native.NativeService, chainID uint64) (uint64, error)

func GetDsHeaderByHash

func GetDsHeaderByHash(native *native.NativeService, hash []byte, chainID uint64) (*core.DsBlock, error)

func GetTxHeaderByHash

func GetTxHeaderByHash(native *native.NativeService, hash []byte, chainID uint64) (*core.TxBlock, error)

func GetTxHeaderByHeight

func GetTxHeaderByHeight(native *native.NativeService, height, chainID uint64) (*core.TxBlock, error)

func IsHeaderExist

func IsHeaderExist(native *native.NativeService, hash []byte, chainID uint64) (bool, error)

Types

type ExtraInfo

type ExtraInfo struct {
	NumOfGuardList int // for zilliqa
}

ExtraInfo ...

type Handler

type Handler struct {
}

Handler ...

func NewHandler

func NewHandler() *Handler

NewHandler ...

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

type TxBlockAndDsComm struct {
	TxBlock *core.TxBlock
	DsBlock *core.DsBlock
	DsComm  []core.PairOfNode
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL