Versions in this module Expand all Collapse all v1 v1.14.2 Aug 2, 2025 Changes in this version + var ErrNotOracle = errors.New("block is not an oracle block") + type Block interface + Bytes func() []byte + Height func() uint64 + Parent func() ids.ID + Time func() uint64 + Verify func(context.Context) error + type Consensus interface + Add func(ctx context.Context, block Block) error + Decided func(blk Block) bool + Finalized func() bool + HealthCheck func(ctx context.Context) (interface{}, error) + Initialize func(ctx context.Context, params Parameters) error + IsPreferred func(blk Block) bool + Issued func(blk Block) bool + NumProcessing func() int + Parameters func() Parameters + Preference func() ids.ID + Processing func(blkID ids.ID) bool + RecordPoll func(ctx context.Context, votes []ids.ID) error + type Engine interface + GetAncestor func(blkID ids.ID, height uint64) (ids.ID, error) + GetBlock func(blkID ids.ID) (Block, error) + Initialize func(ctx context.Context, params Parameters) error + LastAccepted func() (ids.ID, uint64) + VerifyHeightIndex func() error + type Parameters struct + BatchSize int + ConsensusParams interface{} + type VM interface + BuildBlock func(ctx context.Context) (Block, error) + GetAncestor func(ctx context.Context, blkID ids.ID, height uint64) (ids.ID, error) + GetBlock func(ctx context.Context, blkID ids.ID) (Block, error) + LastAccepted func(ctx context.Context) (ids.ID, error) + ParseBlock func(ctx context.Context, b []byte) (Block, error) + SetPreference func(ctx context.Context, blkID ids.ID) error + VerifyHeightIndex func(ctx context.Context) error Other modules containing this package github.com/luxfi/node/v2