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.
Click to show internal directories.
Click to hide internal directories.