Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + const GenesisHeight + const GenesisUnixTimestamp + var Genesis = BuildChain(1)[0] + var GenesisBytes = GenesisID[:] + var GenesisID = ids.GenerateTestID() + var GenesisTimestamp = time.Unix(GenesisUnixTimestamp, 0) + func MakeGetBlockIDAtHeightF(blks ...[]*Block) func(context.Context, uint64) (ids.ID, error) + func MakeLastAcceptedBlockF(blks ...[]*Block) func(context.Context) (ids.ID, error) + func RequireStatusIs(require *require.Assertions, status snowtest.Status, blks ...*Block) + type Block struct + BytesV []byte + HeightV uint64 + ParentV ids.ID + TimestampV time.Time + VerifyV error + func BuildChain(length int) []*Block + func BuildChild(parent *Block) *Block + func BuildDescendants(parent *Block, length int) []*Block + func (b *Block) Bytes() []byte + func (b *Block) Compare(other *Block) int + func (b *Block) Height() uint64 + func (b *Block) Parent() ids.ID + func (b *Block) Timestamp() time.Time + func (b *Block) Verify(context.Context) error