Versions in this module Expand all Collapse all v0 v0.1.1 Oct 1, 2023 v0.1.0 Sep 29, 2023 Changes in this version + func NewDefaultTestFramework(t *testing.T, workers *workerpool.Group, ...) *blockdag.TestFramework + func NewProvider(opts ...options.Option[BlockDAG]) module.Provider[*engine.Engine, blockdag.BlockDAG] + type BlockDAG struct + Workers *workerpool.Group + func New(workers *workerpool.Group, evictionState *eviction.State, ...) (newBlockDAG *BlockDAG) + func NewTestBlockDAG(t *testing.T, workers *workerpool.Group, evictionState *eviction.State, ...) *BlockDAG + func (b *BlockDAG) Attach(data *models.Block) (block *blockdag.Block, wasAttached bool, err error) + func (b *BlockDAG) Block(id models.BlockID) (block *blockdag.Block, exists bool) + func (b *BlockDAG) Events() *blockdag.Events + func (b *BlockDAG) EvictionState() *eviction.State + func (b *BlockDAG) PromoteFutureBlocksUntil(index slot.Index) + func (b *BlockDAG) SetInvalid(block *blockdag.Block, reason error) (wasUpdated bool) + func (b *BlockDAG) SetOrphaned(block *blockdag.Block, orphaned bool) (updated bool) + func (b *BlockDAG) SlotTimeProvider() *slot.TimeProvider