mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix parsing of node public keys in manifest CLI:
The existing code attempts to validate the provided node public key using a function that assumes that the encoded public key is for an account. This causes the parsing to fail. This commit fixes #3317 by letting the caller specify the type of the public key being checked.
This commit is contained in:
@@ -1915,6 +1915,7 @@ NetworkOPsImp::pubManifest(Manifest const& mo)
|
||||
jvObj[jss::master_signature] = strHex(mo.getMasterSignature());
|
||||
if (!mo.domain.empty())
|
||||
jvObj[jss::domain] = mo.domain;
|
||||
jvObj[jss::manifest] = strHex(mo.serialized);
|
||||
|
||||
for (auto i = mStreamMaps[sManifests].begin();
|
||||
i != mStreamMaps[sManifests].end();)
|
||||
|
||||
Reference in New Issue
Block a user