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:
@@ -38,7 +38,7 @@ public:
|
||||
auto const USD = gw["USD"];
|
||||
|
||||
{
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
env.fund(XRP(10000), "alice", "bob", "carol", gw);
|
||||
env.trust(USD(100), "alice", "bob", "carol");
|
||||
env(pay("alice", "bob", USD(10)), delivermin(USD(10)), ter(temBAD_AMOUNT));
|
||||
@@ -61,7 +61,7 @@ public:
|
||||
}
|
||||
|
||||
{
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
env.fund(XRP(10000), "alice", "bob", gw);
|
||||
env.trust(USD(1000), "alice", "bob");
|
||||
env(pay(gw, "bob", USD(100)));
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
}
|
||||
|
||||
{
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
env.fund(XRP(10000), "alice", "bob", "carol", gw);
|
||||
env.trust(USD(1000), "bob", "carol");
|
||||
env(pay(gw, "bob", USD(200)));
|
||||
@@ -91,7 +91,7 @@ public:
|
||||
}
|
||||
|
||||
{
|
||||
Env env(*this, features(fs));
|
||||
Env env(*this, with_features(fs));
|
||||
env.fund(XRP(10000), "alice", "bob", "carol", "dan", gw);
|
||||
env.trust(USD(1000), "bob", "carol", "dan");
|
||||
env(pay(gw, "bob", USD(100)));
|
||||
|
||||
Reference in New Issue
Block a user