mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-23 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:
@@ -534,7 +534,13 @@ void Config::loadFromString (std::string const& fileContents)
|
||||
{
|
||||
auto const part = section("features");
|
||||
for(auto const& s : part.values())
|
||||
features.insert(feature(s));
|
||||
{
|
||||
if (auto const f = getRegisteredFeature(s))
|
||||
features.insert(*f);
|
||||
else
|
||||
Throw<std::runtime_error>(
|
||||
"Unknown feature: " + s + " in config file.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user