mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
@@ -58,7 +58,7 @@ class Freeze_test : public beast::unit_test::suite
|
||||
testcase("RippleState Freeze");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
|
||||
Account G1 {"G1"};
|
||||
Account alice {"alice"};
|
||||
@@ -212,7 +212,7 @@ class Freeze_test : public beast::unit_test::suite
|
||||
testcase("Global Freeze");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
|
||||
Account G1 {"G1"};
|
||||
Account A1 {"A1"};
|
||||
@@ -370,7 +370,7 @@ class Freeze_test : public beast::unit_test::suite
|
||||
testcase("No Freeze");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
|
||||
Account G1 {"G1"};
|
||||
Account A1 {"A1"};
|
||||
@@ -424,7 +424,7 @@ class Freeze_test : public beast::unit_test::suite
|
||||
testcase("Offers for Frozen Trust Lines");
|
||||
|
||||
using namespace test::jtx;
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
|
||||
Account G1 {"G1"};
|
||||
Account A2 {"A2"};
|
||||
|
||||
Reference in New Issue
Block a user