sub

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: Apache-2.0, MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleIncomingBlocks

func HandleIncomingBlocks(ctx context.Context, bsub *pubsub.Subscription, s *chain.Syncer, cmgr connmgr.ConnManager)

func HandleIncomingMessages

func HandleIncomingMessages(ctx context.Context, mpool *messagepool.MessagePool, msub *pubsub.Subscription)

Types

type BlockValidator added in v0.2.8

type BlockValidator struct {
	// contains filtered or unexported fields
}

func NewBlockValidator added in v0.2.8

func NewBlockValidator(blacklist func(peer.ID)) *BlockValidator

func (*BlockValidator) Validate added in v0.2.8

func (bv *BlockValidator) Validate(ctx context.Context, pid peer.ID, msg *pubsub.Message) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL