20 #include <ripple/app/tx/impl/CancelTicket.h>
21 #include <ripple/basics/Log.h>
22 #include <ripple/ledger/View.h>
23 #include <ripple/protocol/Feature.h>
24 #include <ripple/protocol/Indexes.h>
25 #include <ripple/protocol/TxFlags.h>
57 auto const ticket_owner = sleTicket->getAccountID(
sfAccount);
69 using d = tp::duration;
70 auto const expiration = tp{d{sleTicket->getFieldU32(
sfExpiration)}};
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
const SF_Account sfTarget(access, STI_ACCOUNT, 7, "Target")
const SF_U256 sfTicketID(access, STI_HASH256, 20, "TicketID")
virtual std::shared_ptr< SLE > peek(Keylet const &k)=0
Prepare to modify the SLE associated with key.
virtual void erase(std::shared_ptr< SLE > const &sle)=0
Remove a peeked SLE.
const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")
static const ticket_t ticket
const SF_U64 sfOwnerNode(access, STI_UINT64, 4, "OwnerNode")
NetClock::time_point parentCloseTime() const
Returns the close time of the previous ledger.
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
bool dirRemove(Keylet const &directory, std::uint64_t page, uint256 const &key, bool keepRoot)
Remove an entry from a directory.
void adjustOwnerCount(ApplyView &view, std::shared_ptr< SLE > const &sle, std::int32_t amount, beast::Journal j)
Adjust the owner count up or down.
static bool authorized(Port const &port, std::map< std::string, std::string > const &h)
Keylet account(AccountID const &id) noexcept
AccountID root.
std::uint32_t getFlags() const
bool enabled(uint256 const &id) const
Returns true if a feature is enabled.
const uint256 featureTickets
const SF_U32 sfExpiration(access, STI_UINT32, 10, "Expiration")
static NotTEC preflight(PreflightContext const &ctx)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual beast::Journal journal(std::string const &name)=0
const std::uint32_t tfUniversalMask
State information when preflighting a tx.
std::chrono::time_point< NetClock > time_point
TERSubset< CanCvtToNotTEC > NotTEC
uint256 getFieldH256(SField const &field) const