20 #ifndef RIPPLE_APP_TX_TRANSACTOR_H_INCLUDED
21 #define RIPPLE_APP_TX_TRANSACTOR_H_INCLUDED
23 #include <ripple/app/tx/applySteps.h>
24 #include <ripple/app/tx/impl/ApplyContext.h>
25 #include <ripple/basics/XRPAmount.h>
26 #include <ripple/beast/utility/Journal.h>
83 struct PreflightResult;
static NotTEC checkPriorTxAndLastLedger(PreclaimContext const &ctx)
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
static XRPAmount minimumFee(Application &app, XRPAmount baseFee, Fees const &fees, ApplyFlags flags)
Compute the minimum fee required to process a transaction with a given baseFee based on the current s...
static NotTEC checkMultiSign(PreclaimContext const &ctx)
PreclaimContext(Application &app_, ReadView const &view_, TER preflightResult_, STTx const &tx_, ApplyFlags flags_, beast::Journal j_=beast::Journal{beast::Journal::getNullSink()})
static NotTEC checkSingleSign(PreclaimContext const &ctx)
ApplyView const & view() const
std::pair< TER, bool > operator()()
Process the transaction.
Transactor & operator=(Transactor const &)=delete
static NotTEC checkSeqProxy(ReadView const &view, STTx const &tx, beast::Journal j)
static Sink & getNullSink()
Returns a Sink which does nothing.
static TER preclaim(PreclaimContext const &ctx)
static TER ticketDelete(ApplyView &view, AccountID const &account, uint256 const &ticketIndex, beast::Journal j)
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Writeable view to a ledger, for applying a transaction.
NotTEC preflight0(PreflightContext const &ctx)
Performs early sanity checks on the txid.
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
static NotTEC checkSign(PreclaimContext const &ctx)
Reflects the fee settings for a particular ledger.
PreclaimContext & operator=(PreclaimContext const &)=delete
State information when applying a tx.
A generic endpoint for log messages.
TER consumeSeqProxy(SLE::pointer const &sleAccount)
Transactor(Transactor const &)=delete
PreflightContext(Application &app_, STTx const &tx_, Rules const &rules_, ApplyFlags flags_, beast::Journal j_)
State information when determining if a tx is likely to claim a fee.
std::pair< TER, XRPAmount > reset(XRPAmount fee)
Reset the context, discarding any changes made and adjust the fee.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual ~Transactor()=default
Rules controlling protocol behavior.
static TER checkFee(PreclaimContext const &ctx, XRPAmount baseFee)
State information when preflighting a tx.
PreflightContext & operator=(PreflightContext const &)=delete
virtual void preCompute()
TERSubset< CanCvtToNotTEC > NotTEC