ordered_blocks

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Contains

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

func (*OrderedBlocks) PopAll

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

func (*OrderedBlocks) ReceivedCount added in v0.8.0

func (a *OrderedBlocks) ReceivedCount() int

blocks count available for pop

func (*OrderedBlocks) RequestedCount added in v0.8.0

func (a *OrderedBlocks) RequestedCount() int

func (*OrderedBlocks) SetBlock

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

Jump to

Keyboard shortcuts

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