20 #include <ripple/app/tx/impl/CancelOffer.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/protocol/st.h>
23 #include <ripple/ledger/View.h>
38 JLOG(ctx.
j.
trace()) <<
"Malformed transaction: " <<
47 "CancelOffer::preflight: missing sequence";
68 JLOG(ctx.
j.
trace()) <<
"Malformed transaction: " <<
69 "Sequence " << offerSequence <<
" is invalid.";
94 JLOG(
j_.
debug()) <<
"Trying to cancel offer #" << offerSequence;
98 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.
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
const SF_U32 sfSequence(access, STI_UINT32, 4, "Sequence")
uint256 getOfferIndex(AccountID const &account, std::uint32_t uSequence)
const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
TER offerDelete(ApplyView &view, std::shared_ptr< SLE > const &sle, beast::Journal j)
Delete an offer.
static const account_t account
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.
static const offer_t offer
TERSubset< CanCvtToNotTEC > NotTEC