rippled
|
Structure that describes a transaction in the queue waiting to be applied to the current open ledger. More...
Public Member Functions | |
TxDetails (FeeLevel64 feeLevel_, std::optional< LedgerIndex > const &lastValid_, TxConsequences const &consequences_, AccountID const &account_, SeqProxy seqProxy_, std::shared_ptr< STTx const > const &txn_, int retriesRemaining_, TER preflightResult_, std::optional< TER > lastResult_) | |
Full initialization. More... | |
Public Attributes | |
FeeLevel64 | feeLevel |
Fee level of the queued transaction. More... | |
std::optional< LedgerIndex > | lastValid |
LastValidLedger field of the queued transaction, if any. More... | |
TxConsequences | consequences |
Potential TxConsequences of applying the queued transaction to the open ledger. More... | |
AccountID | account |
The account the transaction is queued for. More... | |
SeqProxy | seqProxy |
SeqProxy of the transaction. More... | |
std::shared_ptr< STTx const > | txn |
The full transaction. More... | |
int | retriesRemaining |
Number of times the transactor can return a retry / ter result when attempting to apply this transaction to the open ledger from the queue. More... | |
TER | preflightResult |
The intermediate result returned by preflight before this transaction was queued, or after it is queued, but before a failed attempt to apply it to the open ledger. More... | |
std::optional< TER > | lastResult |
If the transactor attempted to apply the transaction to the open ledger from the queue and failed, then this is the transactor result from the last attempt. More... | |
Structure that describes a transaction in the queue waiting to be applied to the current open ledger.
A collection of these is returned by TxQ::getTxs.
ripple::TxQ::TxDetails::TxDetails | ( | FeeLevel64 | feeLevel_, |
std::optional< LedgerIndex > const & | lastValid_, | ||
TxConsequences const & | consequences_, | ||
AccountID const & | account_, | ||
SeqProxy | seqProxy_, | ||
std::shared_ptr< STTx const > const & | txn_, | ||
int | retriesRemaining_, | ||
TER | preflightResult_, | ||
std::optional< TER > | lastResult_ | ||
) |
FeeLevel64 ripple::TxQ::TxDetails::feeLevel |
std::optional<LedgerIndex> ripple::TxQ::TxDetails::lastValid |
TxConsequences ripple::TxQ::TxDetails::consequences |
Potential TxConsequences of applying the queued transaction to the open ledger.
AccountID ripple::TxQ::TxDetails::account |
SeqProxy ripple::TxQ::TxDetails::seqProxy |
std::shared_ptr<STTx const> ripple::TxQ::TxDetails::txn |
int ripple::TxQ::TxDetails::retriesRemaining |
TER ripple::TxQ::TxDetails::preflightResult |
The intermediate result returned by preflight before this transaction was queued, or after it is queued, but before a failed attempt to apply
it to the open ledger.
This will usually be tesSUCCESS
, but there are some edge cases where it has another value. Those edge cases are interesting enough that this value is made available here. Specifically, if the rules
change between attempts, preflight
will be run again in TxQ::MaybeTx::apply
.
std::optional<TER> ripple::TxQ::TxDetails::lastResult |
If the transactor attempted to apply the transaction to the open ledger from the queue and failed, then this is the transactor result from the last attempt.
Should never be a tec
, tef
, tem
, or tesSUCCESS
, because those results cause the transaction to be removed from the queue.