Documentation ¶
Index ¶
- func FetchMessagesByCids(ctx context.Context, bserv bserv.BlockGetter, cids []cid.Cid) ([]*types.Message, error)
- func FetchSignedMessagesByCids(ctx context.Context, bserv bserv.BlockGetter, cids []cid.Cid) ([]*types.SignedMessage, error)
- func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, s *chain.Syncer, ...)
- func HandleIncomingMessages(ctx context.Context, mpool *messagepool.MessagePool, msub *pubsub.Subscription)
- type BlockValidator
- type IndexerMessageValidator
- type MessageValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMessagesByCids ¶
func FetchSignedMessagesByCids ¶
func FetchSignedMessagesByCids( ctx context.Context, bserv bserv.BlockGetter, cids []cid.Cid, ) ([]*types.SignedMessage, error)
FIXME: Duplicate of above.
func HandleIncomingBlocks ¶
func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, s *chain.Syncer, bs bserv.BlockService, cmgr connmgr.ConnManager)
func HandleIncomingMessages ¶
func HandleIncomingMessages(ctx context.Context, mpool *messagepool.MessagePool, msub *pubsub.Subscription)
Types ¶
type BlockValidator ¶
type BlockValidator struct {
// contains filtered or unexported fields
}
func NewBlockValidator ¶
func NewBlockValidator(self peer.ID, chain *store.ChainStore, cns consensus.Consensus, blacklist func(peer.ID)) *BlockValidator
type IndexerMessageValidator ¶
type IndexerMessageValidator struct {
// contains filtered or unexported fields
}
func NewIndexerMessageValidator ¶
func NewIndexerMessageValidator(self peer.ID, chainApi full.ChainModuleAPI, stateApi full.StateModuleAPI) *IndexerMessageValidator
type MessageValidator ¶
type MessageValidator struct {
// contains filtered or unexported fields
}
func NewMessageValidator ¶
func NewMessageValidator(self peer.ID, mp *messagepool.MessagePool) *MessageValidator
Click to show internal directories.
Click to hide internal directories.