buffer

package
v0.25.10-cadence-v0.23... Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: AGPL-3.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PendingBlocks

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

func NewPendingBlocks

func NewPendingBlocks() *PendingBlocks

func (*PendingBlocks) Add

func (b *PendingBlocks) Add(originID flow.Identifier, proposal *messages.BlockProposal) bool

func (*PendingBlocks) ByID

func (b *PendingBlocks) ByID(blockID flow.Identifier) (*flow.PendingBlock, bool)

func (*PendingBlocks) ByParentID

func (b *PendingBlocks) ByParentID(parentID flow.Identifier) ([]*flow.PendingBlock, bool)

func (*PendingBlocks) DropForParent

func (b *PendingBlocks) DropForParent(parentID flow.Identifier)

func (*PendingBlocks) PruneByView added in v0.25.0

func (b *PendingBlocks) PruneByView(view uint64)

PruneByView prunes any pending blocks with views less or equal to the given view.

func (*PendingBlocks) Size

func (b *PendingBlocks) Size() uint

type PendingClusterBlocks

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

func NewPendingClusterBlocks

func NewPendingClusterBlocks() *PendingClusterBlocks

func (*PendingClusterBlocks) Add

func (*PendingClusterBlocks) ByID

func (*PendingClusterBlocks) ByParentID

func (b *PendingClusterBlocks) ByParentID(parentID flow.Identifier) ([]*cluster.PendingBlock, bool)

func (*PendingClusterBlocks) DropForParent

func (b *PendingClusterBlocks) DropForParent(parentID flow.Identifier)

func (*PendingClusterBlocks) PruneByView added in v0.25.0

func (b *PendingClusterBlocks) PruneByView(view uint64)

PruneByView prunes any pending cluster blocks with views less or equal to the given view.

func (*PendingClusterBlocks) Size

func (b *PendingClusterBlocks) Size() uint

Jump to

Keyboard shortcuts

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