20#include <test/jtx/Env.h>
21#include <test/jtx/acctdelete.h>
23#include <xrpl/protocol/jss.h>
34 jv[sfAccount.jsonName] = account.human();
35 jv[sfDestination.jsonName] = dest.
human();
36 jv[sfTransactionType.jsonName] = jss::AccountDelete;
51 int const delta = [&]() ->
int {
52 if (env.
seq(acc) + 255 > openLedgerSeq(env))
53 return env.
seq(acc) - openLedgerSeq(env) + 255 - margin;
56 env.
test.BEAST_EXPECT(margin == 0 || delta >= 0);
57 for (
int i = 0; i < delta; ++i)
59 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.