Change features default behavior in Env (RIPD-1460):

Enable all supported amendments in Env by default. Rename `features()`
to `with_features()` and add `all_features_except()` to support feature
subsets in Env. Refactor internal feature handling based on a bitset.
This commit is contained in:
Mike Ellery
2017-05-01 16:03:44 -07:00
committed by seelabs
parent 3dfb4a13f1
commit 56946e8128
36 changed files with 749 additions and 367 deletions

View File

@@ -47,7 +47,7 @@ public:
testStepLimit(std::initializer_list<uint256> fs)
{
using namespace jtx;
Env env(*this, features(fs));
Env env(*this, with_features(fs));
auto const xrpMax = XRP(100000000000);
auto const gw = Account("gateway");
auto const USD = gw["USD"];
@@ -81,7 +81,7 @@ public:
testCrossingLimit(std::initializer_list<uint256> fs)
{
using namespace jtx;
Env env(*this, features(fs));
Env env(*this, with_features(fs));
auto const xrpMax = XRP(100000000000);
auto const gw = Account("gateway");
auto const USD = gw["USD"];
@@ -110,7 +110,7 @@ public:
testStepAndCrossingLimit(std::initializer_list<uint256> fs)
{
using namespace jtx;
Env env(*this, features(fs));
Env env(*this, with_features(fs));
auto const xrpMax = XRP(100000000000);
auto const gw = Account("gateway");
auto const USD = gw["USD"];