presolidfilter

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewEvents = event.CreateGroupConstructor(func() *Events {
	return &Events{
		BlockPreFiltered: event.New1[*BlockPreFilteredEvent](),
		BlockPreAllowed:  event.New1[*model.Block](),
	}
})

Functions

This section is empty.

Types

type BlockPreFilteredEvent

type BlockPreFilteredEvent struct {
	Block  *model.Block
	Reason error
	Source peer.ID
}

type Events

type Events struct {
	BlockPreFiltered *event.Event1[*BlockPreFilteredEvent]
	BlockPreAllowed  *event.Event1[*model.Block]

	event.Group[Events, *Events]
}

type PreSolidFilter

type PreSolidFilter interface {
	// ProcessReceivedBlock processes block from the given source.
	ProcessReceivedBlock(block *model.Block, source peer.ID)

	// 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