mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Add public_key to the "vl" method response:
The "/vl" HTTP endpoint can be used to request a particular UNL from a rippled instance. This commit, if merged, includes the public key of the requested list in the response. This commit fixes #3392
This commit is contained in:
committed by
Nik Bougalis
parent
271e79095b
commit
b1d47c65d4
@@ -820,10 +820,11 @@ ValidatorList::getAvailable(boost::beast::string_view const& pubKey)
|
||||
|
||||
Json::Value value(Json::objectValue);
|
||||
|
||||
value["manifest"] = iter->second.rawManifest;
|
||||
value["blob"] = iter->second.rawBlob;
|
||||
value["signature"] = iter->second.rawSignature;
|
||||
value["version"] = iter->second.rawVersion;
|
||||
value[jss::public_key] = std::string{pubKey};
|
||||
value[jss::manifest] = iter->second.rawManifest;
|
||||
value[jss::blob] = iter->second.rawBlob;
|
||||
value[jss::signature] = iter->second.rawSignature;
|
||||
value[jss::version] = iter->second.rawVersion;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user