broadcast

package
v2.10.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcaster

type Broadcaster interface {
	// Broadcast sends a transaction to the network and returns the result.
	//
	// It returns a byte slice containing the formatted result that will be
	// passed to the output writer, and an error if the broadcast failed.
	Broadcast(ctx context.Context, txBytes []byte) ([]byte, error)

	// Consensus returns the consensus engine identifier for this Broadcaster.
	Consensus() string
}

Broadcaster defines an interface for broadcasting transactions to the consensus engine.

Directories

Path Synopsis
testutil
Package testutil is a generated GoMock package.
Package testutil is a generated GoMock package.

Jump to

Keyboard shortcuts

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