 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
	BlockIDs []flow.Identifier
}
    Batch is a set of block IDs we want to request.
type Status ¶
type Status struct {
	BlockHeight uint64       // always present even if we haven't received the header
	Queued      time.Time    // when we originally queued this block request
	Requested   time.Time    // the last time we requested this block
	Attempts    uint         // how many times we've requested this block
	Header      *flow.Header // the requested header, if we've received it
	Received    time.Time    // when we received a response
}
    Status keeps track of a block download status.
func NewQueuedStatus ¶
func (*Status) StatusString ¶
func (*Status) WasReceived ¶
func (*Status) WasRequested ¶
 Click to show internal directories. 
   Click to hide internal directories.