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(chain *store.ChainStore, stmgr *stmgr.StateManager, blacklist func(peer.ID)) *BlockValidator
type MessageValidator ¶ added in v0.2.10
type MessageValidator struct {
// contains filtered or unexported fields
}
func NewMessageValidator ¶ added in v0.2.10
func NewMessageValidator(mp *messagepool.MessagePool) *MessageValidator
Click to show internal directories.
Click to hide internal directories.