network

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Atomic

type Atomic interface {
	common.AppHandler

	Set(common.AppHandler)
}

func NewAtomic

func NewAtomic(h common.AppHandler) Atomic

type Network

type Network interface {
	common.AppHandler

	// IssueTx verifies the transaction at the currently preferred state, adds
	// it to the mempool, and gossips it to the network.
	//
	// Invariant: Assumes the context lock is held.
	IssueTx(context.Context, *txs.Tx) error
}

func New

func New(
	ctx *snow.Context,
	parser txs.Parser,
	manager executor.Manager,
	mempool mempool.Mempool,
	appSender common.AppSender,
) Network

Jump to

Keyboard shortcuts

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