ordered_blocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderedBlocks

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

func NewOrderedBlocks

func NewOrderedBlocks() *OrderedBlocks

func (*OrderedBlocks) Add

func (a *OrderedBlocks) Add(sig proto.BlockID) bool

true - added, false - not added

func (*OrderedBlocks) AvailableCount

func (a *OrderedBlocks) AvailableCount() int

blocks count available for pop

func (*OrderedBlocks) Contains

func (a *OrderedBlocks) Contains(sig proto.BlockID) bool

func (*OrderedBlocks) PopAll

func (a *OrderedBlocks) PopAll() []*proto.Block

func (*OrderedBlocks) SetBlock

func (a *OrderedBlocks) SetBlock(b *proto.Block)

func (*OrderedBlocks) WaitingCount

func (a *OrderedBlocks) WaitingCount() int

Jump to

Keyboard shortcuts

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