Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResolverRequestHandler ¶
func NewResolverRequestHandler( finder dataRetriever.RequestersFinder, requestedItemsHandler dataRetriever.RequestedItemsHandler, whiteList dataRetriever.WhiteListHandler, maxTxsToRequest int, shardID uint32, requestInterval time.Duration, ) (*resolverRequestHandler, error)
NewResolverRequestHandler creates a requestHandler interface implementation with request functions
Types ¶
type ChunkRequester ¶
type ChunkRequester interface {
RequestDataFromReferenceAndChunk(reference []byte, chunkIndex uint32) error
}
ChunkRequester can request a chunk of a large data
type EpochRequester ¶
EpochRequester can request data for a specific epoch
type HashSliceRequester ¶
type HashSliceRequester interface { RequestDataFromHashArray(hashes [][]byte, epoch uint32) error IsInterfaceNil() bool }
HashSliceRequester can request multiple hashes at once
type HeaderRequester ¶
type HeaderRequester interface { NonceRequester EpochRequester }
HeaderRequester defines what a block header requester can do
type NonceRequester ¶
NonceRequester can request data for a specific nonce
Click to show internal directories.
Click to hide internal directories.