sub

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0, MIT Imports: 29 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)

Functions

func FetchMessagesByCids added in v0.5.0

func FetchMessagesByCids(
	ctx context.Context,
	bserv bserv.BlockGetter,
	cids []cid.Cid,
) ([]*types.Message, error)

func FetchSignedMessagesByCids added in v0.5.0

func FetchSignedMessagesByCids(
	ctx context.Context,
	bserv bserv.BlockGetter,
	cids []cid.Cid,
) ([]*types.SignedMessage, error)

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 added in v0.2.8

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

func NewBlockValidator added in v0.2.8

func NewBlockValidator(self peer.ID, chain *store.ChainStore, cns consensus.Consensus, 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) (res pubsub.ValidationResult)

type IndexerMessageValidator added in v1.15.1

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

func NewIndexerMessageValidator added in v1.15.1

func NewIndexerMessageValidator(self peer.ID, chainApi full.ChainModuleAPI, stateApi full.StateModuleAPI) *IndexerMessageValidator

func (*IndexerMessageValidator) Validate added in v1.15.1

type MessageValidator added in v0.2.10

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

func NewMessageValidator added in v0.2.10

func NewMessageValidator(self peer.ID, mp *messagepool.MessagePool) *MessageValidator

func (*MessageValidator) Validate added in v0.2.10

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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