Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHeaderValidator ¶ added in v0.9.1
type BlockTopicValidator ¶
type BlockTopicValidator struct {
// contains filtered or unexported fields
}
BlockTopicValidator may be registered on go-libp2p-pubsub to validate blocksub messages.
func NewBlockTopicValidator ¶
func NewBlockTopicValidator(bv BlockHeaderValidator, opts ...pubsub.ValidatorOpt) *BlockTopicValidator
NewBlockTopicValidator retruns a BlockTopicValidator using `bv` for message validation
func (*BlockTopicValidator) Opts ¶
func (btv *BlockTopicValidator) Opts() []pubsub.ValidatorOpt
func (*BlockTopicValidator) Topic ¶
func (btv *BlockTopicValidator) Topic(network string) string
func (*BlockTopicValidator) Validator ¶
func (btv *BlockTopicValidator) Validator() pubsub.ValidatorEx
Click to show internal directories.
Click to hide internal directories.