sync_internal

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

Documentation

Index

Constants

View Source
const NoSignaturesExpected = false
View Source
const WaitingForSignatures = true

Variables

View Source
var NoSignaturesExpectedErr = errors.New("no signatures expected")
View Source
var UnexpectedBlockErr = errors.New("unexpected block")

Functions

This section is empty.

Types

type BlockApplied

type BlockApplied bool

type Blocks

type Blocks []*proto.Block

type Eof

type Eof = bool

type Internal

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

func NewInternal

func NewInternal(orderedBlocks *ordered_blocks.OrderedBlocks, respondedSignatures *signatures.ReverseOrdering, waitingForSignatures bool, nearEnd bool) Internal

func (Internal) AvailableCount

func (a Internal) AvailableCount() int

func (Internal) Block

func (a Internal) Block(block *proto.Block) (Internal, error)

func (Internal) BlockIDs

func (a Internal) BlockIDs(p PeerExtension, sigs []proto.BlockID) (Internal, error)

func (Internal) Blocks

func (a Internal) Blocks(p peerExtension) (Internal, Blocks, Eof)

func (Internal) NearEnd

func (a Internal) NearEnd() bool

func (Internal) WaitingForSignatures

func (a Internal) WaitingForSignatures() bool

type PeerExtension

type PeerExtension interface {
	AskBlocksIDs(id []proto.BlockID)
	AskBlock(id proto.BlockID)
}

Jump to

Keyboard shortcuts

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