mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Include config manifest in server_info admin response (RIPD-1172)
This commit is contained in:
@@ -491,16 +491,16 @@ OverlayImpl::setupValidatorKeyManifests (BasicConfig const& config,
|
||||
Throw<std::runtime_error> (
|
||||
"Unable to load keys from [" SECTION_VALIDATOR_KEYS "]");
|
||||
|
||||
auto const validation_manifest =
|
||||
auto const& validation_manifest =
|
||||
config.section (SECTION_VALIDATION_MANIFEST);
|
||||
|
||||
if (! validation_manifest.lines().empty())
|
||||
{
|
||||
std::string s;
|
||||
s.reserve (188);
|
||||
for (auto const& line : validation_manifest.lines())
|
||||
s += beast::rfc2616::trim(line);
|
||||
s = beast::detail::base64_decode(s);
|
||||
if (auto mo = make_Manifest (std::move (s)))
|
||||
if (auto mo = make_Manifest (beast::detail::base64_decode(s)))
|
||||
{
|
||||
manifestCache_.configManifest (
|
||||
std::move (*mo),
|
||||
|
||||
Reference in New Issue
Block a user