Documentation ¶
Index ¶
- Constants
- Variables
- type BlockApplied
- type Blocks
- type Eof
- type Internal
- func (a Internal) AvailableCount() int
- func (a Internal) Block(block *proto.Block) (Internal, error)
- func (a Internal) BlockIDs(p PeerExtension, sigs []proto.BlockID) (Internal, error)
- func (a Internal) Blocks(p peerExtension) (Internal, Blocks, Eof)
- func (a Internal) NearEnd() bool
- func (a Internal) WaitingForSignatures() bool
- type PeerExtension
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 Internal ¶
type Internal struct {
// contains filtered or unexported fields
}
func InternalFromLastSignatures ¶
func InternalFromLastSignatures(p extension.PeerExtension, sigs *signatures.ReverseOrdering) Internal
func NewInternal ¶
func NewInternal(orderedBlocks *ordered_blocks.OrderedBlocks, respondedSignatures *signatures.ReverseOrdering, waitingForSignatures bool, nearEnd bool) Internal
func (Internal) AvailableCount ¶
func (Internal) WaitingForSignatures ¶
Click to show internal directories.
Click to hide internal directories.