Skip to content

Commit ec65e62

Browse files
tequdevRichardAH
authored andcommitted
Merge fixAMMv1_3 amendment into featureAMM amendment
1 parent 65837f4 commit ec65e62

File tree

14 files changed

+328
-952
lines changed

14 files changed

+328
-952
lines changed

include/xrpl/protocol/Feature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ namespace detail {
8080
// Feature.cpp. Because it's only used to reserve storage, and determine how
8181
// large to make the FeatureBitset, it MAY be larger. It MUST NOT be less than
8282
// the actual number of amendments. A LogicError on startup will verify this.
83-
static constexpr std::size_t numFeatures = 114;
83+
static constexpr std::size_t numFeatures = 113;
8484

8585
/** Amendments that this server supports and the default voting behavior.
8686
Whether they are enabled depends on the Rules defined in the validated

include/xrpl/protocol/detail/features.macro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
// If you add an amendment here, then do not forget to increment `numFeatures`
3232
// in include/xrpl/protocol/Feature.h.
3333

34-
XRPL_FIX (AMMv1_3, Supported::yes, VoteBehavior::DefaultNo)
3534
XRPL_FEATURE(HookAPISerializedType240, Supported::yes, VoteBehavior::DefaultNo)
3635
XRPL_FEATURE(PermissionedDomains, Supported::no, VoteBehavior::DefaultNo)
3736
XRPL_FEATURE(DynamicNFT, Supported::no, VoteBehavior::DefaultNo)

src/test/app/AMMClawback_test.cpp

Lines changed: 146 additions & 408 deletions
Large diffs are not rendered by default.

src/test/app/AMMExtended_test.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,7 +1405,6 @@ struct AMMExtended_test : public jtx::AMMTest
14051405
using namespace jtx;
14061406
FeatureBitset const all{supported_amendments()};
14071407
testRmFundedOffer(all);
1408-
testRmFundedOffer(all - fixAMMv1_3);
14091408
testEnforceNoRipple(all);
14101409
testFillModes(all);
14111410
testOfferCrossWithXRP(all);
@@ -1419,15 +1418,13 @@ struct AMMExtended_test : public jtx::AMMTest
14191418
testOfferCreateThenCross(all);
14201419
testSellFlagExceedLimit(all);
14211420
testGatewayCrossCurrency(all);
1422-
testGatewayCrossCurrency(all - fixAMMv1_3);
14231421
testBridgedCross(all);
14241422
testSellWithFillOrKill(all);
14251423
testTransferRateOffer(all);
14261424
testSelfIssueOffer(all);
14271425
testBadPathAssert(all);
14281426
testSellFlagBasic(all);
14291427
testDirectToDirectPath(all);
1430-
testDirectToDirectPath(all - fixAMMv1_3);
14311428
testRequireAuth(all);
14321429
testMissingAuth(all);
14331430
}
@@ -3838,9 +3835,7 @@ struct AMMExtended_test : public jtx::AMMTest
38383835
testBookStep(all);
38393836
testBookStep(all | ownerPaysFee);
38403837
testTransferRate(all | ownerPaysFee);
3841-
testTransferRate((all - fixAMMv1_3) | ownerPaysFee);
38423838
testTransferRateNoOwnerFee(all);
3843-
testTransferRateNoOwnerFee(all - fixAMMv1_3);
38443839
testLimitQuality();
38453840
testXRPPathLoop();
38463841
}
@@ -3851,7 +3846,6 @@ struct AMMExtended_test : public jtx::AMMTest
38513846
using namespace jtx;
38523847
FeatureBitset const all{supported_amendments()};
38533848
testStepLimit(all);
3854-
testStepLimit(all - fixAMMv1_3);
38553849
}
38563850

38573851
void
@@ -3860,7 +3854,6 @@ struct AMMExtended_test : public jtx::AMMTest
38603854
using namespace jtx;
38613855
FeatureBitset const all{supported_amendments()};
38623856
test_convert_all_of_an_asset(all);
3863-
test_convert_all_of_an_asset(all - fixAMMv1_3);
38643857
}
38653858

38663859
void

0 commit comments

Comments
 (0)