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:
Scott Schurr
2020-12-11 14:36:44 -08:00
committed by Edward Hennis
parent 78245a072c
commit 44fe0e1fc4
19 changed files with 40 additions and 68 deletions

View File

@@ -5157,9 +5157,6 @@ public:
using namespace jtx;
// Should be called with TicketBatch enabled.
BEAST_EXPECT(features[featureTicketBatch]);
// Two goals for this test.
//
// o Verify that offers can be created using tickets.
@@ -5280,9 +5277,6 @@ public:
using namespace jtx;
// Should be called with TicketBatch enabled.
BEAST_EXPECT(features[featureTicketBatch]);
// Verify that offers created with or without tickets can be canceled
// by transactions with or without tickets.
Env env{*this, features};
@@ -5471,7 +5465,7 @@ public:
run() override
{
using namespace jtx;
FeatureBitset const all{supported_amendments() | featureTicketBatch};
FeatureBitset const all{supported_amendments()};
FeatureBitset const flowCross{featureFlowCross};
FeatureBitset const takerDryOffer{fixTakerDryOfferRemoval};
@@ -5489,7 +5483,7 @@ class Offer_manual_test : public Offer_test
run() override
{
using namespace jtx;
FeatureBitset const all{supported_amendments() | featureTicketBatch};
FeatureBitset const all{supported_amendments()};
FeatureBitset const flowCross{featureFlowCross};
FeatureBitset const f1513{fix1513};
FeatureBitset const takerDryOffer{fixTakerDryOfferRemoval};