ejectors

package
v0.10.1-consensus-desr... Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LatestSeal

type LatestSeal struct {
	// contains filtered or unexported fields
}

LatestSeal is a mempool ejector for block seals that ejects newest-first. NOTE: should be initialized with its own headers instance with cache size equal to the mempool size.

func NewLatestSeal

func NewLatestSeal(headers storage.Headers) *LatestSeal

func (*LatestSeal) Eject

func (ls *LatestSeal) Eject(entities map[flow.Identifier]flow.Entity) (flow.Identifier, flow.Entity)

Jump to

Keyboard shortcuts

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