Documentation
¶
Index ¶
- type Getter
- type Manager
- func (m *Manager) Get(ctx context.Context, nodeID ids.NodeID, blockIDs set.Set[ids.ID]) error
- func (m *Manager) GetAncestors(ctx context.Context, nodeID ids.NodeID, blockID ids.ID) error
- func (m *Manager) OnResponse(reqID uint32)
- func (m *Manager) Outstanding() int
- func (m *Manager) TimeoutPending()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Getter ¶
type Getter interface {
// Get retrieves blocks by their IDs
Get(
ctx context.Context,
nodeID ids.NodeID,
requestID uint32,
blockIDs set.Set[ids.ID],
) error
// GetAncestors retrieves ancestors of a block
GetAncestors(
ctx context.Context,
nodeID ids.NodeID,
requestID uint32,
blockID ids.ID,
) error
}
Getter defines the interface for fetching blocks
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages block fetching operations
func NewManager ¶
NewManager creates a new getter manager
func (*Manager) GetAncestors ¶
GetAncestors initiates an ancestor fetch request
func (*Manager) OnResponse ¶
OnResponse handles responses to fetch requests
func (*Manager) Outstanding ¶
Outstanding returns the number of outstanding requests
func (*Manager) TimeoutPending ¶
func (m *Manager) TimeoutPending()
TimeoutPending removes timed out requests
Click to show internal directories.
Click to hide internal directories.