Documentation ¶
Index ¶
- type PendingBlocks
- func (b *PendingBlocks) Add(originID flow.Identifier, proposal *messages.BlockProposal) bool
- func (b *PendingBlocks) ByID(blockID flow.Identifier) (*flow.PendingBlock, bool)
- func (b *PendingBlocks) ByParentID(parentID flow.Identifier) ([]*flow.PendingBlock, bool)
- func (b *PendingBlocks) DropForParent(parentID flow.Identifier)
- func (b *PendingBlocks) PruneByHeight(height uint64)
- func (b *PendingBlocks) Size() uint
- type PendingClusterBlocks
- func (b *PendingClusterBlocks) Add(originID flow.Identifier, proposal *messages.ClusterBlockProposal) bool
- func (b *PendingClusterBlocks) ByID(blockID flow.Identifier) (*cluster.PendingBlock, bool)
- func (b *PendingClusterBlocks) ByParentID(parentID flow.Identifier) ([]*cluster.PendingBlock, bool)
- func (b *PendingClusterBlocks) DropForParent(parentID flow.Identifier)
- func (b *PendingClusterBlocks) PruneByHeight(height uint64)
- func (b *PendingClusterBlocks) Size() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PendingBlocks ¶
type PendingBlocks struct {
// contains filtered or unexported fields
}
func NewPendingBlocks ¶
func NewPendingBlocks() *PendingBlocks
func (*PendingBlocks) Add ¶
func (b *PendingBlocks) Add(originID flow.Identifier, proposal *messages.BlockProposal) bool
func (*PendingBlocks) ByID ¶
func (b *PendingBlocks) ByID(blockID flow.Identifier) (*flow.PendingBlock, bool)
func (*PendingBlocks) ByParentID ¶
func (b *PendingBlocks) ByParentID(parentID flow.Identifier) ([]*flow.PendingBlock, bool)
func (*PendingBlocks) DropForParent ¶
func (b *PendingBlocks) DropForParent(parentID flow.Identifier)
func (*PendingBlocks) PruneByHeight ¶
func (b *PendingBlocks) PruneByHeight(height uint64)
func (*PendingBlocks) Size ¶
func (b *PendingBlocks) Size() uint
type PendingClusterBlocks ¶
type PendingClusterBlocks struct {
// contains filtered or unexported fields
}
func NewPendingClusterBlocks ¶
func NewPendingClusterBlocks() *PendingClusterBlocks
func (*PendingClusterBlocks) Add ¶
func (b *PendingClusterBlocks) Add(originID flow.Identifier, proposal *messages.ClusterBlockProposal) bool
func (*PendingClusterBlocks) ByID ¶
func (b *PendingClusterBlocks) ByID(blockID flow.Identifier) (*cluster.PendingBlock, bool)
func (*PendingClusterBlocks) ByParentID ¶
func (b *PendingClusterBlocks) ByParentID(parentID flow.Identifier) ([]*cluster.PendingBlock, bool)
func (*PendingClusterBlocks) DropForParent ¶
func (b *PendingClusterBlocks) DropForParent(parentID flow.Identifier)
func (*PendingClusterBlocks) PruneByHeight ¶
func (b *PendingClusterBlocks) PruneByHeight(height uint64)
func (*PendingClusterBlocks) Size ¶
func (b *PendingClusterBlocks) Size() uint
Click to show internal directories.
Click to hide internal directories.