mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-24 12:35:50 +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:
@@ -286,7 +286,8 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
void testLookupLedger()
|
||||
{
|
||||
using namespace test::jtx;
|
||||
Env env { *this };
|
||||
Env env {*this, no_features}; // hashes requested below assume
|
||||
//no amendments
|
||||
env.fund(XRP(10000), "alice");
|
||||
env.close();
|
||||
env.fund(XRP(10000), "bob");
|
||||
@@ -476,7 +477,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
.set("minimum_txn_in_ledger_standalone", "3");
|
||||
return cfg;
|
||||
}),
|
||||
features(featureFeeEscalation)};
|
||||
with_features(featureFeeEscalation)};
|
||||
|
||||
Json::Value jv;
|
||||
jv[jss::ledger_index] = "current";
|
||||
|
||||
Reference in New Issue
Block a user