p2p

package
v0.15.20 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransactionBroadcaster

func NewTransactionBroadcaster(
	log utils.Logger,
	bufferSize int,
	retryInterval time.Duration,
) transactionBroadcaster

func NewTransactionListener

func NewTransactionListener(
	network *utils.Network,
	log utils.Logger,
	pool mempool.Pool,
	bufferSize int,
	compiler compiler.Compiler,
) buffered.TopicSubscription

Types

type P2P

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

func New

func New(
	network *utils.Network,
	host host.Host,
	log utils.Logger,
	pool mempool.Pool,
	config *config.BufferSizes,
	bootstrapPeersFn func() []peer.AddrInfo,
	compiler compiler.Compiler,
) *P2P

func (*P2P) Push

func (p *P2P) Push(ctx context.Context, transaction *mempool.BroadcastedTransaction) error

func (*P2P) Run

func (p *P2P) Run(ctx context.Context) (returnedError error)

Jump to

Keyboard shortcuts

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