Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Blockify ¶
type Blockify interface { flow.Entity Height() uint64 ParentID() flow.Identifier }
Blockify becuase Blocker seems a bit off. Make items behave like a block, so it can be queued
type Queue ¶
type Queue struct { Head *Node Highest *Node Nodes map[flow.Identifier]*Node }
Queue is a fork-aware queue/tree of blocks for use in execution Node, where parallel forks can be processed simultaneously. For fast lookup which is predicted to be common case all nodes are kept as one queue, which is expected to split into separate queues once a fork (multiple children) is reached. Note that this is not a thread-safe structure and external synchronisation is required to use in concurrent environment
func (*Queue) Checksum ¶
func (q *Queue) Checksum() flow.Identifier
func (*Queue) Dismount ¶
Dismount removes the head element, returns it and it's children as new queues
func (*Queue) ID ¶
func (q *Queue) ID() flow.Identifier
Click to show internal directories.
Click to hide internal directories.