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 ¶ added in v1.6.0
type ChunkRequester interface {
RequestDataFromReferenceAndChunk(reference []byte, chunkIndex uint32) error
}
ChunkRequester can request a chunk of a large data
type EpochRequester ¶ added in v1.6.0
EpochRequester can request data for a specific epoch
type HashSliceRequester ¶ added in v1.6.0
type HashSliceRequester interface { RequestDataFromHashArray(hashes [][]byte, epoch uint32) error IsInterfaceNil() bool }
HashSliceRequester can request multiple hashes at once
type HeaderRequester ¶ added in v1.6.0
type HeaderRequester interface { NonceRequester EpochRequester }
HeaderRequester defines what a block header requester can do
type NonceRequester ¶ added in v1.6.0
NonceRequester can request data for a specific nonce
Click to show internal directories.
Click to hide internal directories.