20 #ifndef RIPPLE_TX_APPLYSTEPS_H_INCLUDED
21 #define RIPPLE_TX_APPLYSTEPS_H_INCLUDED
23 #include <ripple/beast/utility/Journal.h>
24 #include <ripple/ledger/ApplyViewImpl.h>
168 template <
class Context>
212 template <
class Context>
283 PreflightResult
const& preflightResult,
285 OpenView
const& view);
337 doApply(PreclaimResult
const& preclaimResult, Application& app, OpenView& view);
XRPAmount fee() const
Fee.
ReadView const & view
From the input - the ledger view.
const TxConsequences consequences
Consequences of the transaction.
const beast::Journal j
From the input - the journal.
TxConsequences(NotTEC pfresult)
PreflightResult & operator=(PreflightResult const &)=delete
Deleted copy assignment operator.
Category
Describes how the transaction affects subsequent transactions.
XRPAmount fee_
Transaction fee.
STTx const & tx
From the input - the transaction.
PreflightResult preflight(Application &app, Rules const &rules, STTx const &tx, ApplyFlags flags, beast::Journal j)
Gate a transaction based on static information.
const bool likelyToClaimFee
Success flag - whether the transaction is likely to claim a fee.
bool isTecClaimHardFail(TER ter, ApplyFlags flags)
Return true if the transaction can claim a fee (tec), and the ApplyFlags do not allow soft failures.
const TER ter
Intermediate transaction result.
PreflightResult(Context const &ctx_, std::pair< NotTEC, TxConsequences > const &result)
Constructor.
std::pair< TER, bool > doApply(PreclaimResult const &preclaimResult, Application &app, OpenView &view)
Apply a prechecked transaction to an OpenView.
Describes the results of the preflight check.
XRPAmount const & potentialSpend() const
Potential Spend.
const Rules rules
From the input - the rules.
@ blocker
Affects the ability of subsequent transactions to claim a fee.
const NotTEC ter
Intermediate transaction result.
bool isBlocker() const
Returns true if the transaction is a blocker.
SeqProxy seqProx_
SeqProxy of transaction.
SeqProxy & advanceBy(std::uint32_t amount)
A generic endpoint for log messages.
bool isBlocker_
Describes how the transaction affects subsequent transactions.
XRPAmount calculateDefaultBaseFee(ReadView const &view, STTx const &tx)
Return the minimum fee that an "ordinary" transaction would pay.
PreclaimResult preclaim(PreflightResult const &preflightResult, Application &app, OpenView const &view)
Gate a transaction based on static ledger information.
std::uint32_t sequencesConsumed() const
Sequences consumed.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
PreclaimResult & operator=(PreclaimResult const &)=delete
Deleted copy assignment operator.
TxConsequences & operator=(TxConsequences const &)=default
Copy assignment operator.
SeqProxy seqProxy() const
SeqProxy.
Describes the results of the preclaim check.
A type that represents either a sequence value or a ticket value.
XRPAmount potentialSpend_
Does NOT include the fee.
Rules controlling protocol behavior.
XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Compute only the expected base fee for a transaction.
const ApplyFlags flags
From the input - the flags.
@ normal
Moves currency around, creates offers, etc.
const ApplyFlags flags
From the input - the flags.
std::uint32_t sequencesConsumed_
Number of sequences consumed.
PreclaimResult(Context const &ctx_, TER ter_)
Constructor.
Class describing the consequences to the account of applying a transaction if the transaction consume...
SeqProxy followingSeq() const
STTx const & tx
From the input - the transaction.
const beast::Journal j
From the input - the journal.