mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add [features] section to .cfg:
This non-production config section allows features to be enabled
by listing their text descriptions, one line each, in the config
section titled "features".
NOTE: Feature names with leading or trailing whitespace, or
containing an equals sign ('=') are not supported.
This commit is contained in:
committed by
Edward Hennis
parent
2ec40cb6f1
commit
d49f9ea109
@@ -86,11 +86,15 @@ Rules::Rules (DigestAwareReadView const& ledger)
|
||||
}
|
||||
|
||||
bool
|
||||
Rules::enabled (uint256 const& feature) const
|
||||
Rules::enabled (uint256 const& id,
|
||||
std::unordered_set<uint256,
|
||||
beast::uhash<>> const& presets) const
|
||||
{
|
||||
if (presets.count(id) > 0)
|
||||
return true;
|
||||
if (! impl_)
|
||||
return false;
|
||||
return impl_->enabled(feature);
|
||||
return impl_->enabled(id);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user