18 #include <ripple/app/tx/apply.h>
19 #include <ripple/protocol/Feature.h>
20 #include <ripple/protocol/STAccount.h>
82 Env env(*
this, features);
84 for (
auto const& stx :
90 BEAST_EXPECT(reason ==
"Cannot submit pseudo transactions.");
95 BEAST_EXPECT(!result.second && result.first ==
temINVALID);
115 using namespace test::jtx;
const SF_AMOUNT sfBaseFeeDrops
const SF_UINT32 sfReserveBase
const uint256 featureXRPFees
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
const SF_UINT32 sfLedgerSequence
std::pair< TER, bool > apply(Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)
Apply a transaction to an OpenView.
const SF_ACCOUNT sfDestination
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Writable ledger view that accumulates state and tx changes.
@ ttFEE
This system-generated transaction type is used to update the network's fee settings.
virtual OpenLedger & openLedger()=0
@ ttAMENDMENT
This system-generated transaction type is used to update the status of the various amendments.
@ ttPAYMENT
This transaction type executes a payment.
bool isPseudoTx(STObject const &tx)
Check whether a transaction is a pseudo-transaction.
bool passesLocalChecks(STObject const &st, std::string &reason)
const SF_UINT32 sfReserveIncrement
A generic endpoint for log messages.
FeatureBitset supported_amendments()
const SF_AMOUNT sfReserveIncrementDrops
const SF_AMOUNT sfReserveBaseDrops
std::vector< STTx > getPseudoTxs(Rules const &rules, std::uint32_t seq)
@ ttACCOUNT_SET
This transaction type adjusts various account settings.
const SF_UINT64 sfBaseFee
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.
void testPrevented(FeatureBitset features)
std::vector< STTx > getRealTxs()
const SF_UINT32 sfReferenceFeeUnits
Rules controlling protocol behavior.
const SF_ACCOUNT sfAccount
const SF_UINT256 sfAmendment
bool modify(modify_type const &f)
Modify the open ledger.
A transaction testing environment.
BEAST_DEFINE_TESTSUITE(DeliverMin, app, ripple)