Documentation ¶
Index ¶
- type Block
- type Header
- type SignedBlock
- func BuildApricot(parentID ids.ID, timestamp time.Time, pChainHeight uint64, ...) (SignedBlock, error)
- func BuildBlueberry(parentID ids.ID, timestamp time.Time, pChainHeight uint64, ...) (SignedBlock, error)
- func BuildUnsignedApricot(parentID ids.ID, timestamp time.Time, pChainHeight uint64, blockBytes []byte) (SignedBlock, error)
- func BuildUnsignedBlueberry(parentID ids.ID, timestamp time.Time, pChainHeight uint64, blockBytes []byte) (SignedBlock, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block interface { ID() ids.ID ParentID() ids.ID Block() []byte Bytes() []byte // contains filtered or unexported methods }
func BuildOption ¶
BuildOption the option block [parentID] is the ID of this option's wrapper parent block [innerBytes] is the byte representation of a child option block
type SignedBlock ¶
type SignedBlock interface { Block PChainHeight() uint64 Timestamp() time.Time Proposer() ids.NodeID Verify(shouldHaveProposer bool, chainID ids.ID) error }
func BuildApricot ¶ added in v1.8.0
func BuildBlueberry ¶ added in v1.8.0
func BuildUnsignedApricot ¶ added in v1.8.0
func BuildUnsignedBlueberry ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.