presolidblockfilter

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidatorNotInCommittee = ierrors.New("validation block issuer is not in the committee")
	ErrInvalidBlockVersion     = ierrors.New("block has invalid protocol version")
)

Functions

Types

type PreSolidBlockFilter

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

PreSolidBlockFilter filters blocks.

func New

New creates a new PreSolidBlockFilter.

func (*PreSolidBlockFilter) Init

func (f *PreSolidBlockFilter) Init(committeeFunc func(iotago.SlotIndex) (*account.SeatedAccounts, bool))

Init initializes the PreSolidBlockFilter.

func (*PreSolidBlockFilter) ProcessReceivedBlock

func (f *PreSolidBlockFilter) ProcessReceivedBlock(block *model.Block, source peer.ID)

ProcessReceivedBlock processes block from the given source.

func (*PreSolidBlockFilter) Reset

func (f *PreSolidBlockFilter) 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