Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + const CodecVersion + type Block interface + Bytes func() []byte + Height func() uint64 + ID func() ids.ID + MerkleRoot func() ids.ID + Parent func() ids.ID + Timestamp func() time.Time + Txs func() []*txs.Tx + type MockBlock struct + func NewMockBlock(ctrl *gomock.Controller) *MockBlock + func (m *MockBlock) Bytes() []byte + func (m *MockBlock) EXPECT() *MockBlockMockRecorder + func (m *MockBlock) Height() uint64 + func (m *MockBlock) ID() ids.ID + func (m *MockBlock) InitCtx(ctx *snow.Context) + func (m *MockBlock) MerkleRoot() ids.ID + func (m *MockBlock) Parent() ids.ID + func (m *MockBlock) Timestamp() time.Time + func (m *MockBlock) Txs() []*txs.Tx + type MockBlockMockRecorder struct + func (mr *MockBlockMockRecorder) Bytes() *gomock.Call + func (mr *MockBlockMockRecorder) Height() *gomock.Call + func (mr *MockBlockMockRecorder) ID() *gomock.Call + func (mr *MockBlockMockRecorder) InitCtx(ctx any) *gomock.Call + func (mr *MockBlockMockRecorder) MerkleRoot() *gomock.Call + func (mr *MockBlockMockRecorder) Parent() *gomock.Call + func (mr *MockBlockMockRecorder) Timestamp() *gomock.Call + func (mr *MockBlockMockRecorder) Txs() *gomock.Call + type Parser interface + ParseBlock func(bytes []byte) (Block, error) + ParseGenesisBlock func(bytes []byte) (Block, error) + func NewCustomParser(typeToFxIndex map[reflect.Type]int, clock *mockable.Clock, log logging.Logger, ...) (Parser, error) + func NewParser(fxs []fxs.Fx) (Parser, error) + type StandardBlock struct + BlockID ids.ID + Hght uint64 + PrntID ids.ID + Root ids.ID + Time uint64 + Transactions []*txs.Tx + func NewStandardBlock(parentID ids.ID, height uint64, timestamp time.Time, txs []*txs.Tx, ...) (*StandardBlock, error) + func (b *StandardBlock) Bytes() []byte + func (b *StandardBlock) Height() uint64 + func (b *StandardBlock) ID() ids.ID + func (b *StandardBlock) InitCtx(ctx *snow.Context) + func (b *StandardBlock) MerkleRoot() ids.ID + func (b *StandardBlock) Parent() ids.ID + func (b *StandardBlock) Timestamp() time.Time + func (b *StandardBlock) Txs() []*txs.Tx