3#include <xrpld/app/tx/apply.h> 
    5#include <xrpl/protocol/Feature.h> 
   22            obj[sfLedgerSequence] = 
seq;
 
   23            if (rules.
enabled(featureXRPFees))
 
   27                obj[sfReserveIncrementDrops] = 
XRPAmount{0};
 
   32                obj[sfReserveBase] = 0;
 
   33                obj[sfReserveIncrement] = 0;
 
   34                obj[sfReferenceFeeUnits] = 0;
 
   40            obj.setFieldH256(sfAmendment, 
uint256(2));
 
   41            obj.setFieldU32(sfLedgerSequence, 
seq);
 
 
   53            ttACCOUNT_SET, [&](
auto& obj) { obj[sfAccount] = 
AccountID(1); }));
 
   56            obj.setAccountID(sfAccount, 
AccountID(2));
 
   57            obj.setAccountID(sfDestination, 
AccountID(3));
 
 
   67        Env env(*
this, features);
 
   69        for (
auto const& stx :
 
   75            BEAST_EXPECT(reason == 
"Cannot submit pseudo transactions.");
 
   80                    BEAST_EXPECT(!result.applied && result.ter == 
temINVALID);
 
   81                    return result.applied;
 
 
  100        using namespace test::jtx;
 
 
 
  110BEAST_DEFINE_TESTSUITE(PseudoTx, app, 
ripple);
 
A generic endpoint for log messages.
 
virtual OpenLedger & openLedger()=0
 
bool modify(modify_type const &f)
Modify the open ledger.
 
Writable ledger view that accumulates state and tx changes.
 
Rules controlling protocol behavior.
 
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
 
A transaction testing environment.
 
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
 
T emplace_back(T... args)
 
FeatureBitset testable_amendments()
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
 
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
 
bool isPseudoTx(STObject const &tx)
Check whether a transaction is a pseudo-transaction.
 
ApplyResult apply(Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)
Apply a transaction to an OpenView.
 
bool passesLocalChecks(STObject const &st, std::string &)
 
void testPrevented(FeatureBitset features)
 
void run() override
Runs the suite.
 
std::vector< STTx > getPseudoTxs(Rules const &rules, std::uint32_t seq)
 
std::vector< STTx > getRealTxs()
 
Set the sequence number on a JTx.