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>
64 "Malformed transaction: Invalid flags set.";
static FeeUnit64 calculateBaseFee(ReadView const &view, STTx const &tx)
const SF_Account sfRegularKey(access, STI_ACCOUNT, 8, "RegularKey")
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 const signers_t signers
Stream trace() const
Severity stream access functions.
boost::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")
static XRPAmount minimumFee(Application &app, FeeUnit64 baseFee, Fees const &fees, ApplyFlags flags)
Compute the minimum fee required to process a transaction with a given baseFee based on the current s...
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
static const account_t account
AccountID getAccountID(SField const &field) const
AccountID calcAccountID(PublicKey const &pk)
std::uint32_t getFlags() const
const uint256 fixMasterKeyAsRegularKey
static FeeUnit64 calculateBaseFee(ReadView const &view, STTx const &tx)
Blob getSigningPubKey() const
bool enabled(uint256 const &id) const
Returns true if a feature is enabled.
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
FeeUnit< std::uint64_t > FeeUnit64
const std::uint32_t tfUniversalMask
State information when preflighting a tx.