txinput_queue

package
v0.4.3-testnet Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdFromPeer = byte(iota)
	CmdFromAPIOrInflator
)
View Source
const (
	Name = "txInputQueue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Cmd        byte
	TxBytes    []byte
	TxMetaData *txmetadata.TransactionMetadata
	FromPeer   peer.ID
	TxData     []byte // full data buffer of the transaction
}

type TxInputQueue

type TxInputQueue struct {
	*work_process.WorkProcess[Input]
	// contains filtered or unexported fields
}

func New

func New(env environment) *TxInputQueue

func (*TxInputQueue) AddWantedTransaction

func (q *TxInputQueue) AddWantedTransaction(txid *ledger.TransactionID)

AddWantedTransaction adds transaction short id to the wanted filter. It makes the transaction go directly for attachment without checking other filters and without gossiping

func (*TxInputQueue) EvidenceNonSequencerTx

func (q *TxInputQueue) EvidenceNonSequencerTx()

Jump to

Keyboard shortcuts

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