Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + var ErrInsufficientPower = errors.New("incoming block's miner does not have minimum power") + var ErrSoftFailure = errors.New("soft validation failure") + 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 struct + func NewBlockValidator(self peer.ID, chain *store.ChainStore, stmgr *stmgr.StateManager, ...) *BlockValidator + func (bv *BlockValidator) Validate(ctx context.Context, pid peer.ID, msg *pubsub.Message) pubsub.ValidationResult + type MessageValidator struct + func NewMessageValidator(self peer.ID, mp *messagepool.MessagePool) *MessageValidator + func (mv *MessageValidator) Validate(ctx context.Context, pid peer.ID, msg *pubsub.Message) pubsub.ValidationResult