18 #include <ripple/app/tx/apply.h>
19 #include <ripple/protocol/STAccount.h>
79 BEAST_EXPECT(reason ==
"Cannot submit pseudo transactions.");
84 BEAST_EXPECT(!result.second && result.first ==
temINVALID);
BEAST_DEFINE_TESTSUITE(AccountDelete, app, ripple)
std::pair< TER, bool > apply(Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)
Apply a transaction to an OpenView.
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Writable ledger view that accumulates state and tx changes.
const SF_Account sfAccount(access, STI_ACCOUNT, 1, "Account")
virtual OpenLedger & openLedger()=0
const SF_U32 sfReserveBase(access, STI_UINT32, 31, "ReserveBase")
bool isPseudoTx(STObject const &tx)
Check whether a transaction is a pseudo-transaction.
bool passesLocalChecks(STObject const &st, std::string &reason)
const SF_U256 sfAmendment(access, STI_HASH256, 19, "Amendment")
const SF_U32 sfLedgerSequence(access, STI_UINT32, 6, "LedgerSequence")
const SF_U32 sfReferenceFeeUnits(access, STI_UINT32, 30, "ReferenceFeeUnits")
A generic endpoint for log messages.
Set the sequence number on a JTx.
T emplace_back(T... args)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::vector< STTx > getRealTxs()
const SF_U32 sfReserveIncrement(access, STI_UINT32, 32, "ReserveIncrement")
const SF_Account sfDestination(access, STI_ACCOUNT, 3, "Destination")
std::vector< STTx > getPseudoTxs(std::uint32_t seq)
const SF_U64 sfBaseFee(access, STI_UINT64, 5, "BaseFee")
bool modify(modify_type const &f)
Modify the open ledger.
A transaction testing environment.