Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsensusType ¶ added in v0.3.29
type ConsensusType uint8
const ( Unspecified ConsensusType = iota IBFT2 QBFT )
func (ConsensusType) String ¶ added in v0.3.29
func (c ConsensusType) String() string
type ParsedHeader ¶
type ParsedHeader struct { Base *gethtypes.Header Vanity []byte Validators []common.Address Vote interface{} Round []byte Seals [][]byte }
func ParseHeader ¶
func ParseHeader(header *gethtypes.Header) (*ParsedHeader, error)
func (ParsedHeader) GetSealingHeaderBytes ¶
func (h ParsedHeader) GetSealingHeaderBytes(consensusType ConsensusType) ([]byte, error)
func (ParsedHeader) ValidateAndGetCommitSeals ¶
func (h ParsedHeader) ValidateAndGetCommitSeals(consensusType ConsensusType) ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.