Documentation ¶
Index ¶
- Variables
- type BlockApplied
- type Blocks
- type ChangePeerNeeded
- type Eof
- type Internal
- func (a Internal) AvailableCount() int
- func (a Internal) Block(block *proto.Block) (Internal, error)
- func (a Internal) BlockIDs(p PeerExtension, ids []proto.BlockID) (Internal, error)
- func (a Internal) Blocks(p peerExtension, needToChangePeerSyncWithFunc func() bool) (Internal, Blocks, Eof, ChangePeerNeeded)
- func (a Internal) RequestedCount() int
- func (a Internal) WaitingForSignatures() bool
- type PeerExtension
Constants ¶
This section is empty.
Variables ¶
View Source
var NoSignaturesExpectedErr = proto.NewInfoMsg(errors.New("no signatures expected"))
View Source
var UnexpectedBlockErr = proto.NewInfoMsg(errors.New("unexpected block"))
Functions ¶
This section is empty.
Types ¶
type BlockApplied ¶
type BlockApplied bool
type ChangePeerNeeded ¶ added in v0.10.0
type ChangePeerNeeded = bool
type Internal ¶
type Internal struct {
// contains filtered or unexported fields
}
func InternalFromLastSignatures ¶
func InternalFromLastSignatures(p extension.PeerExtension, signatures *signatures.ReverseOrdering) Internal
func NewInternal ¶
func NewInternal(orderedBlocks *ordered_blocks.OrderedBlocks, respondedSignatures *signatures.ReverseOrdering, waitingForSignatures bool) Internal
func (Internal) AvailableCount ¶
func (Internal) RequestedCount ¶ added in v0.8.0
func (Internal) WaitingForSignatures ¶
Click to show internal directories.
Click to hide internal directories.