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