20 #ifndef RIPPLE_TX_APPLY_H_INCLUDED
21 #define RIPPLE_TX_APPLY_H_INCLUDED
23 #include <ripple/beast/utility/Journal.h>
24 #include <ripple/core/Config.h>
25 #include <ripple/ledger/View.h>
26 #include <ripple/protocol/STTx.h>
27 #include <ripple/protocol/TER.h>
67 Config
const& config);
std::pair< TER, bool > apply(Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)
Apply a transaction to an OpenView.
ApplyResult applyTransaction(Application &app, OpenView &view, STTx const &tx, bool retryAssured, ApplyFlags flags, beast::Journal journal)
Transaction application helper.
Validity
Describes the pre-processing validity of a transaction.
ApplyResult
Enum class for return value from applyTransaction
void forceValidity(HashRouter &router, uint256 const &txid, Validity validity)
Sets the validity of a given transaction in the cache.
@ SigGoodOnly
Signature is good, but local checks fail.
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules, Config const &config)
Checks transaction signature and local checks.
@ Retry
Should be retried in this ledger.
A generic endpoint for log messages.
@ Success
Applied to this ledger.
@ Fail
Should not be retried in this ledger.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
@ Valid
Signature and local checks are good / passed.
@ SigBad
Signature is bad. Didn't do local checks.