mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add support for the 'TicketBatch' amendment:
Support for 'out-of-sequence' transaction execution was introduced
in commit 7724cca384.
The changes in that commit were gated under a feature but there was
no corresponding amendment introduced that would allow the network
to vote on this amendment.
This commit introduces 'TicketBatch' amendment as the amendment
that is associated with the tickets feature. If the amendment is
enabled, it will activate support for tickets.
This commit also removes several workarounds that are no longer
needed in unit tests.
This commit is contained in:
committed by
Edward Hennis
parent
78245a072c
commit
44fe0e1fc4
@@ -346,7 +346,7 @@ public:
|
||||
Account const gw{"gateway"};
|
||||
auto const USD = gw["USD"];
|
||||
|
||||
Env env(*this, supported_amendments() | featureTicketBatch);
|
||||
Env env(*this);
|
||||
|
||||
// Make a lambda we can use to get "account_objects" easily.
|
||||
auto acct_objs = [&env](Account const& acct, char const* type) {
|
||||
|
||||
@@ -507,7 +507,7 @@ public:
|
||||
testTicket()
|
||||
{
|
||||
using namespace test::jtx;
|
||||
Env env(*this, supported_amendments() | featureTicketBatch);
|
||||
Env env(*this);
|
||||
Account const alice("alice");
|
||||
|
||||
env.fund(XRP(10000), alice);
|
||||
|
||||
@@ -252,7 +252,7 @@ class AccountTx_test : public beast::unit_test::suite
|
||||
using namespace test::jtx;
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
Env env(*this, supported_amendments() | featureTicketBatch);
|
||||
Env env(*this);
|
||||
Account const alice{"alice"};
|
||||
Account const alie{"alie"};
|
||||
Account const gw{"gw"};
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
//==============================================================================
|
||||
|
||||
#include <ripple/basics/StringUtilities.h>
|
||||
#include <ripple/protocol/Feature.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <test/jtx.h>
|
||||
|
||||
@@ -309,10 +308,7 @@ public:
|
||||
// Put a bunch of different LedgerEntryTypes into a ledger
|
||||
using namespace test::jtx;
|
||||
using namespace std::chrono;
|
||||
Env env{
|
||||
*this,
|
||||
envconfig(validator, ""),
|
||||
supported_amendments() | featureTicketBatch};
|
||||
Env env{*this, envconfig(validator, "")};
|
||||
|
||||
Account const gw{"gateway"};
|
||||
auto const USD = gw["USD"];
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
#include <ripple/basics/StringUtilities.h>
|
||||
#include <ripple/beast/unit_test.h>
|
||||
#include <ripple/protocol/ErrorCodes.h>
|
||||
#include <ripple/protocol/Feature.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <test/jtx.h>
|
||||
|
||||
@@ -1107,7 +1106,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
{
|
||||
testcase("ledger_entry Request Ticket");
|
||||
using namespace test::jtx;
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
env.close();
|
||||
|
||||
// Create two tickets.
|
||||
|
||||
Reference in New Issue
Block a user