inmemorybooker

package
v1.0.0-alpha.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider

func NewProvider(opts ...options.Option[Booker]) module.Provider[*engine.Engine, booker.Booker]

Types

type Booker

type Booker struct {
	module.Module
	// contains filtered or unexported fields
}

func New

func New(subModule module.Module, apiProvider iotago.APIProvider, blockCache *blocks.Blocks, errorHandler func(error), opts ...options.Option[Booker]) *Booker

func (*Booker) Init

func (b *Booker) Init(ledger ledger.Ledger, loadBlockFromStorage func(iotago.BlockID) (*model.Block, bool))

func (*Booker) Queue

func (b *Booker) Queue(block *blocks.Block) error

Queue checks if payload is solid and then sets up the block to react to its parents.

func (*Booker) Reset

func (b *Booker) Reset()

Reset resets the component to a clean state as if it was created at the last commitment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL