20 #include <ripple/app/tx/impl/SetRegularKey.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/protocol/Feature.h>
23 #include <ripple/protocol/TxFlags.h>
60 JLOG(ctx.
j.
trace()) <<
"Malformed transaction: Invalid flags set.";
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
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...
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
Stream trace() const
Severity stream access functions.
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
const SF_ACCOUNT sfRegularKey
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)
Keylet account(AccountID const &id) noexcept
AccountID root.
AccountID getAccountID(SField const &field) const
AccountID calcAccountID(PublicKey const &pk)
std::uint32_t getFlags() const
const uint256 fixMasterKeyAsRegularKey
Blob getSigningPubKey() const
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
static NotTEC preflight(PreflightContext const &ctx)
bool isFieldPresent(SField const &field) const
const SF_ACCOUNT sfAccount
State information when preflighting a tx.
static Keylet signers(AccountID const &account, std::uint32_t page) noexcept
constexpr std::uint32_t tfUniversalMask
static XRPAmount calculateBaseFee(ReadView const &view, STTx const &tx)