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
@@ -425,7 +425,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
testcase("Create Tickets that fail Preflight");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
|
||||
Account const master{env.master};
|
||||
|
||||
@@ -474,7 +474,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
using namespace test::jtx;
|
||||
{
|
||||
// Create tickets on a non-existent account.
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
env.memoize(alice);
|
||||
|
||||
@@ -485,7 +485,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
{
|
||||
// Exceed the threshold where tickets can no longer be
|
||||
// added to an account.
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
|
||||
env.fund(XRP(100000), alice);
|
||||
@@ -524,7 +524,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
}
|
||||
{
|
||||
// Explore exceeding the ticket threshold from another angle.
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
|
||||
env.fund(XRP(100000), alice);
|
||||
@@ -564,7 +564,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
testcase("Create Ticket Insufficient Reserve");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
|
||||
// Fund alice not quite enough to make the reserve for a Ticket.
|
||||
@@ -624,7 +624,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
testcase("Using Tickets");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
|
||||
env.fund(XRP(10000), alice);
|
||||
@@ -720,7 +720,7 @@ class Ticket_test : public beast::unit_test::suite
|
||||
testcase("Transaction Database With Tickets");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env{*this, supported_amendments() | featureTicketBatch};
|
||||
Env env{*this};
|
||||
Account alice{"alice"};
|
||||
|
||||
env.fund(XRP(10000), alice);
|
||||
|
||||
Reference in New Issue
Block a user