txinput_queue

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CmdFromPeer = byte(iota)
	CmdFromAPI
)
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
	TraceFlag  bool
}

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