postsolidfilter

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewEvents = event.CreateGroupConstructor(func() *Events {
	return &Events{
		BlockFiltered: event.New1[*BlockFilteredEvent](),
		BlockAllowed:  event.New1[*blocks.Block](),
	}
})

Functions

This section is empty.

Types

type BlockFilteredEvent

type BlockFilteredEvent struct {
	Block  *blocks.Block
	Reason error
}

type Events

type Events struct {
	BlockFiltered *event.Event1[*BlockFilteredEvent]
	BlockAllowed  *event.Event1[*blocks.Block]

	event.Group[Events, *Events]
}

type PostSolidFilter

type PostSolidFilter interface {
	// ProcessSolidBlock processes block from the given source.
	ProcessSolidBlock(block *blocks.Block)

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

	module.Module
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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