zilliqa

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: LGPL-3.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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