20 #include <ripple/app/tx/impl/CancelOffer.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/ledger/View.h>
23 #include <ripple/protocol/st.h>
38 JLOG(ctx.
j.
trace()) <<
"Malformed transaction: "
39 <<
"Invalid flags set.";
46 JLOG(ctx.
j.
trace()) <<
"CancelOffer::preflight: missing sequence";
67 JLOG(ctx.
j.
trace()) <<
"Malformed transaction: "
68 <<
"Sequence " << offerSequence <<
" is invalid.";
88 JLOG(
j_.
debug()) <<
"Trying to cancel offer #" << offerSequence;
92 JLOG(
j_.
debug()) <<
"Offer #" << offerSequence <<
" can't be found.";
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
static TER preclaim(PreclaimContext const &ctx)
Stream trace() const
Severity stream access functions.
const SF_U32 sfSequence(access, STI_UINT32, 4, "Sequence")
const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")
Keylet offer(AccountID const &id, std::uint32_t seq) noexcept
An offer from an account.
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Keylet account(AccountID const &id) noexcept
AccountID root.
TER offerDelete(ApplyView &view, std::shared_ptr< SLE > const &sle, beast::Journal j)
Delete an offer.
std::uint32_t getFlags() const
virtual std::shared_ptr< SLE const > read(Keylet const &k) const =0
Return the state item associated with a key.
static NotTEC preflight(PreflightContext const &ctx)
State information when determining if a tx is likely to claim a fee.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual beast::Journal journal(std::string const &name)=0
const SF_U32 sfOfferSequence(access, STI_UINT32, 25, "OfferSequence")
const std::uint32_t tfUniversalMask
std::uint32_t getFieldU32(SField const &field) const
State information when preflighting a tx.
TERSubset< CanCvtToNotTEC > NotTEC