1#include <test/jtx/Env.h> 
    2#include <test/jtx/acctdelete.h> 
    4#include <xrpl/protocol/jss.h> 
   15    jv[sfAccount.jsonName] = account.human();
 
   16    jv[sfDestination.jsonName] = dest.
human();
 
   17    jv[sfTransactionType.jsonName] = jss::AccountDelete;
 
 
   32    int const delta = [&]() -> 
int {
 
   33        if (env.
seq(acc) + 255 > openLedgerSeq(env))
 
   34            return env.
seq(acc) - openLedgerSeq(env) + 255 - margin;
 
   37    env.
test.BEAST_EXPECT(margin == 0 || delta >= 0);
 
   38    for (
int i = 0; i < delta; ++i)
 
   40    env.
test.BEAST_EXPECT(openLedgerSeq(env) == env.
seq(acc) + 255 - margin);
 
 
Immutable cryptographic account descriptor.
 
std::string const & human() const
Returns the human readable public key.
 
A transaction testing environment.
 
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
 
beast::unit_test::suite & test
 
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
 
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
 
void incLgrSeqForAccDel(jtx::Env &env, jtx::Account const &acc, std::uint32_t margin=0)
 
Json::Value acctdelete(Account const &account, Account const &dest)
Delete account.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.