Revert "Remove CryptoConditionsSuite stub amendment:"

This reverts commit d3798f6290.
This commit is contained in:
seelabs
2020-08-07 16:10:52 -04:00
committed by manojsdoshi
parent 7bb6b75f3c
commit f79a4a8cdb
3 changed files with 8 additions and 3 deletions

View File

@@ -147,7 +147,10 @@ EscrowCreate::preflight(PreflightContext const& ctx)
return temMALFORMED;
}
if (condition->type != Type::preimageSha256)
// Conditions other than PrefixSha256 require the
// "CryptoConditionsSuite" amendment:
if (condition->type != Type::preimageSha256 &&
!ctx.rules.enabled(featureCryptoConditionsSuite))
return temDISABLED;
}

View File

@@ -83,7 +83,7 @@ class FeatureCollections
"TickSize",
"fix1368",
"Escrow",
// "CryptoConditionsSuite",
"CryptoConditionsSuite",
"fix1373",
"EnforceInvariants",
"SortedDirectories",
@@ -348,6 +348,7 @@ extern uint256 const featureOwnerPaysFee;
extern uint256 const featureFlow;
extern uint256 const featureCompareTakerFlowCross;
extern uint256 const featureFlowCross;
extern uint256 const featureCryptoConditionsSuite;
extern uint256 const fix1513;
extern uint256 const featureDepositAuth;
extern uint256 const featureChecks;

View File

@@ -102,7 +102,7 @@ detail::supportedAmendments()
"TickSize",
"fix1368",
"Escrow",
// "CryptoConditionsSuite", DO NOT REUSE
"CryptoConditionsSuite",
"fix1373",
"EnforceInvariants",
"FlowCross",
@@ -165,6 +165,7 @@ uint256 const
featureFlow = *getRegisteredFeature("Flow"),
featureCompareTakerFlowCross = *getRegisteredFeature("CompareTakerFlowCross"),
featureFlowCross = *getRegisteredFeature("FlowCross"),
featureCryptoConditionsSuite = *getRegisteredFeature("CryptoConditionsSuite"),
fix1513 = *getRegisteredFeature("fix1513"),
featureDepositAuth = *getRegisteredFeature("DepositAuth"),
featureChecks = *getRegisteredFeature("Checks"),