{"modulePath":"github.com/polynetwork/poly","version":"v1.8.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pixiechain\n\n## Constants\n\n```go\nconst (\n\tGasLimitMax = uint64(0x7fffffffffffffff) // GasLimit maximum ( GasLimit \u003c= 2^63-1)\n)\n```\n\n## Variables\n\n```go\nvar TestFlagNoCheckPixieHeaderSig bool\n```\nTestFlagNoCheckPixieHeaderSig only for testing purpose to check if Pixie Chain can be normal back after fork happens\n\n## Functions\n\n```go\nfunc GetCanonicalHeight(native *native.NativeService, chainID uint64) (height uint64, err error)\n```\nGetCanonicalHeight ...\n\n```go\nfunc ParseValidators(validatorsBytes []byte) ([]ecommon.Address, error)\n```\nParseValidators ...\n\n```go\nfunc SealHash(header *eth.Header, chainID *big.Int) (hash ecommon.Hash)\n```\nSealHash returns the hash of a block prior to it being sealed.\n\n```go\nfunc VerifyGaslimit(parentGasLimit, headerGasLimit uint64) error\n```\nVerifyGaslimit verifies the header gas limit according increase/decrease in relation to the parent gas limit.\n\n## Types\n\n```go\ntype Context struct {\n\tExtraInfo ExtraInfo\n\tChainID   uint64\n}\n```\nContext ...\n\n```go\ntype ExtraInfo struct {\n\tChainID *big.Int // chainId of pixie chain. mainnet: 6626, testnet: 666\n\tPeriod  uint64\n}\n```\nExtraInfo ...\n\n```go\ntype GenesisHeader struct {\n\tHeader         eth.Header\n\tPrevValidators []HeightAndValidators\n}\n```\nGenesisHeader ...\n\n```go\ntype Handler struct {\n}\n```\nHandler ...\n\n```go\nfunc NewPixieHandler() *Handler\n```\nNewPixieHandler ...\n\n```go\nfunc (h *Handler) SyncBlockHeader(native *native.NativeService) error\n```\nSyncBlockHeader ... Will verify header coming from congress consensus\n\n```go\nfunc (h *Handler) SyncCrossChainMsg(native *native.NativeService) error\n```\nSyncCrossChainMsg ...\n\n```go\nfunc (h *Handler) SyncGenesisHeader(native *native.NativeService) (err error)\n```\n\n```go\ntype HeaderWithChainID struct {\n\tHeader  *HeaderWithDifficultySum\n\tChainID uint64\n}\n```\nHeaderWithChainID ...\n\n```go\ntype HeaderWithDifficultySum struct {\n\tHeader          *eth.Header   `json:\"header\"`\n\tDifficultySum   *big.Int      `json:\"difficultySum\"`\n\tEpochParentHash *ecommon.Hash `json:\"epochParentHash\"`\n}\n```\nHeaderWithDifficultySum ...\n\n```go\nfunc GetCanonicalHeader(native *native.NativeService, chainID uint64, height uint64) (headerWithSum *HeaderWithDifficultySum, err error)\n```\nGetCanonicalHeader ...\n\n```go\ntype HeightAndValidators struct {\n\tHeight     *big.Int\n\tValidators []ecommon.Address\n\tHash       *ecommon.Hash\n}\n```\nHeightAndValidators ...\n\n","path":"github.com/polynetwork/poly/native/service/header_sync/pixiechain","name":"pixiechain","synopsis":"","isRedistributable":true}
