Documentation ¶
Index ¶
- type HashSliceResolver
- type ResolverRequestHandler
- func (rrh *ResolverRequestHandler) RequestHeader(shardId uint32, hash []byte)
- func (rrh *ResolverRequestHandler) RequestHeaderByNonce(destShardID uint32, nonce uint64)
- func (rrh *ResolverRequestHandler) RequestMiniBlock(shardId uint32, miniblockHash []byte)
- func (rrh *ResolverRequestHandler) RequestTransaction(destShardID uint32, txHashes [][]byte)
- func (rrh *ResolverRequestHandler) RequestUnsignedTransactions(destShardID uint32, scrHashes [][]byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashSliceResolver ¶
HashSliceResolver can request multiple hashes at once
type ResolverRequestHandler ¶ added in v1.0.3
type ResolverRequestHandler struct {
// contains filtered or unexported fields
}
func NewMetaResolverRequestHandler ¶
func NewMetaResolverRequestHandler( finder dataRetriever.ResolversFinder, hdrRequestTopic string, ) (*ResolverRequestHandler, error)
NewMetaResolverRequestHandler creates a requestHandler interface implementation with request functions
func NewShardResolverRequestHandler ¶
func NewShardResolverRequestHandler( finder dataRetriever.ResolversFinder, txRequestTopic string, scrRequestTopic string, mbRequestTopic string, hdrRequestTopic string, maxTxsToRequest int, ) (*ResolverRequestHandler, error)
NewShardResolverRequestHandler creates a requestHandler interface implementation with request functions
func (*ResolverRequestHandler) RequestHeader ¶ added in v1.0.3
func (rrh *ResolverRequestHandler) RequestHeader(shardId uint32, hash []byte)
RequestHeader method asks for header from the connected peers
func (*ResolverRequestHandler) RequestHeaderByNonce ¶ added in v1.0.3
func (rrh *ResolverRequestHandler) RequestHeaderByNonce(destShardID uint32, nonce uint64)
RequestHeaderByNonce method asks for transactions from the connected peers
func (*ResolverRequestHandler) RequestMiniBlock ¶ added in v1.0.3
func (rrh *ResolverRequestHandler) RequestMiniBlock(shardId uint32, miniblockHash []byte)
RequestMiniBlock method asks for miniblocks from the connected peers
func (*ResolverRequestHandler) RequestTransaction ¶ added in v1.0.3
func (rrh *ResolverRequestHandler) RequestTransaction(destShardID uint32, txHashes [][]byte)
RequestTransaction method asks for transactions from the connected peers
func (*ResolverRequestHandler) RequestUnsignedTransactions ¶ added in v1.0.11
func (rrh *ResolverRequestHandler) RequestUnsignedTransactions(destShardID uint32, scrHashes [][]byte)
RequestUnsignedTransactions method asks for unsigned transactions from the connected peers