Rename featureToStrandV2 to fix1373

This commit is contained in:
seelabs
2017-04-14 08:53:11 -04:00
committed by Nik Bougalis
parent 068889e5b1
commit 2680b78b5b
18 changed files with 24 additions and 24 deletions

View File

@@ -52,7 +52,7 @@ supportedAmendments ()
{ "E2E6F2866106419B88C50045ACE96368558C345566AC8F2BDF5A5B5587F0E6FA fix1368" },
{ "07D43DCE529B15A10827E5E04943B496762F9A88E3268269D69C44BE49E21104 Escrow" },
{ "86E83A7D2ECE3AD5FA87AB2195AE015C950469ABF0B72EAACED318F74886AE90 CryptoConditionsSuite" },
{ "48C4451D6C6A138453F056EB6793AFF4B5C57457A37BA63EF3541FF8CE873DC2 ToStrandV2"},
{ "42EEA5E28A97824821D4EF97081FE36A54E9593C6E4F20CBAE098C69D2E072DC fix1373" },
{ "DC9CA96AEA1DCF83E527D1AFC916EFAF5D27388ECA4060A88817C1238CAEE0BF EnforceInvariants" }
};
}

View File

@@ -685,7 +685,7 @@ BookStep<TIn, TOut>::check(StrandContext const& ctx) const
return temBAD_PATH_LOOP;
}
if (ctx.view.rules().enabled(featureToStrandV2) &&
if (ctx.view.rules().enabled(fix1373) &&
ctx.seenDirectIssues[1].count(book_.out))
{
JLOG(j_.debug()) << "BookStep: loop detected: " << *this;

View File

@@ -104,7 +104,7 @@ toStep (
JLOG (j.warn())
<< "Found offer/account payment step. Aborting payment strand.";
assert (0);
if (ctx.view.rules().enabled(featureToStrandV2))
if (ctx.view.rules().enabled(fix1373))
return {temBAD_PATH, std::unique_ptr<Step>{}};
Throw<FlowException> (tefEXCEPTION, "Found offer/account payment step.");
}
@@ -668,7 +668,7 @@ toStrand (
bool ownerPaysTransferFee,
beast::Journal j)
{
if (view.rules().enabled(featureToStrandV2))
if (view.rules().enabled(fix1373))
return toStrandV2(
view, src, dst, deliver, sendMaxIssue, path, ownerPaysTransferFee, j);
else

View File

@@ -48,7 +48,7 @@ extern uint256 const featureTickSize;
extern uint256 const fix1368;
extern uint256 const featureEscrow;
extern uint256 const featureCryptoConditionsSuite;
extern uint256 const featureToStrandV2;
extern uint256 const fix1373;
extern uint256 const featureEnforceInvariants;
} // ripple

View File

@@ -59,7 +59,7 @@ uint256 const featureTickSize = feature("TickSize");
uint256 const fix1368 = feature("fix1368");
uint256 const featureEscrow = feature("Escrow");
uint256 const featureCryptoConditionsSuite = feature("CryptoConditionsSuite");
uint256 const featureToStrandV2 = feature("ToStrandV2");
uint256 const fix1373 = feature("fix1373");
uint256 const featureEnforceInvariants = feature("EnforceInvariants");
} // ripple

View File

@@ -159,7 +159,7 @@ public:
};
testAll({});
testAll({featureFlow});
testAll({featureFlow, featureToStrandV2});
testAll({featureFlow, fix1373});
}
};

View File

@@ -113,7 +113,7 @@ public:
{
test_convert_all_of_an_asset({});
test_convert_all_of_an_asset({featureFlow});
test_convert_all_of_an_asset({featureFlow, featureToStrandV2});
test_convert_all_of_an_asset({featureFlow, fix1373});
}
};

View File

@@ -146,7 +146,7 @@ public:
{
testXRPDiscrepancy ({});
testXRPDiscrepancy ({featureFlow});
testXRPDiscrepancy ({featureFlow, featureToStrandV2});
testXRPDiscrepancy ({featureFlow, fix1373});
}
};

View File

@@ -1228,7 +1228,7 @@ struct Flow_test : public beast::unit_test::suite
};
testWithFeats();
testWithFeats(featureFlow);
testWithFeats(featureFlow, featureToStrandV2);
testWithFeats(featureFlow, fix1373);
}
};

View File

@@ -532,7 +532,7 @@ public:
};
testAll({});
testAll({featureFlow});
testAll({featureFlow, featureToStrandV2});
testAll({featureFlow, fix1373});
}
};

View File

@@ -1923,7 +1923,7 @@ public:
};
testAll({});
testAll({featureFlow});
testAll({featureFlow, featureToStrandV2});
testAll({featureFlow, fix1373});
}
};

View File

@@ -645,7 +645,7 @@ struct PayStrand_test : public beast::unit_test::suite
using RippleCalc = ::ripple::path::RippleCalc;
ExistingElementPool eep;
Env env(*this, features(featureToStrandV2));
Env env(*this, features(fix1373));
auto const closeTime = fix1298Time() +
100 * env.closed()->info().closeTimeResolution;
@@ -1264,7 +1264,7 @@ struct PayStrand_test : public beast::unit_test::suite
auto const USD = gw["USD"];
auto const EUR = gw["EUR"];
if (hasFeature(featureToStrandV2, fs))
if (hasFeature(fix1373, fs))
{
Env env(*this, features(fs));
env.fund(XRP(10000), alice, bob, gw);
@@ -1363,7 +1363,7 @@ struct PayStrand_test : public beast::unit_test::suite
auto const expectedResult = [&] {
if (hasFeature(featureFlow, fs) &&
!hasFeature(featureToStrandV2, fs))
!hasFeature(fix1373, fs))
return tesSUCCESS;
return temBAD_PATH_LOOP;
}();
@@ -1404,12 +1404,12 @@ struct PayStrand_test : public beast::unit_test::suite
{
testAllPairs();
testToStrand({featureFlow});
testToStrand({featureFlow, featureToStrandV2});
testToStrand({featureFlow, fix1373});
testRIPD1373({});
testRIPD1373({featureFlow, featureToStrandV2});
testRIPD1373({featureFlow, fix1373});
testLoop({});
testLoop({featureFlow});
testLoop({featureFlow, featureToStrandV2});
testLoop({featureFlow, fix1373});
}
};

View File

@@ -77,7 +77,7 @@ struct SetAuth_test : public beast::unit_test::suite
{
testAuth({});
testAuth({featureFlow});
testAuth({featureFlow, featureToStrandV2});
testAuth({featureFlow, fix1373});
}
};

View File

@@ -508,7 +508,7 @@ public:
};
testWithFeatures({});
testWithFeatures({featureFlow});
testWithFeatures({featureFlow, featureToStrandV2});
testWithFeatures({featureFlow, fix1373});
}
};

View File

@@ -95,7 +95,7 @@ struct BookDirs_test : public beast::unit_test::suite
void run() override
{
test_bookdir({});
test_bookdir({featureFlow, featureToStrandV2});
test_bookdir({featureFlow, fix1373});
}
};

View File

@@ -344,7 +344,7 @@ public:
testReserve(fs);
};
testAll({});
testAll({featureFlow, featureToStrandV2});
testAll({featureFlow, fix1373});
}
};

View File

@@ -154,7 +154,7 @@ public:
run() override
{
testGWB({});
testGWB({featureFlow, featureToStrandV2});
testGWB({featureFlow, fix1373});
}
};

View File

@@ -219,7 +219,7 @@ public:
};
withFeatsTests({});
withFeatsTests({featureFlow});
withFeatsTests({featureFlow, featureToStrandV2});
withFeatsTests({featureFlow, fix1373});
}
};