diff --git a/src/ripple/app/misc/NetworkOPs.cpp b/src/ripple/app/misc/NetworkOPs.cpp index 84ba65dc850..8b883d454c1 100644 --- a/src/ripple/app/misc/NetworkOPs.cpp +++ b/src/ripple/app/misc/NetworkOPs.cpp @@ -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();) diff --git a/src/ripple/net/impl/RPCCall.cpp b/src/ripple/net/impl/RPCCall.cpp index 9a79515a252..b3d8f4e4746 100644 --- a/src/ripple/net/impl/RPCCall.cpp +++ b/src/ripple/net/impl/RPCCall.cpp @@ -151,9 +151,11 @@ class RPCParser } static bool - validPublicKey(std::string const& strPk) + validPublicKey( + std::string const& strPk, + TokenType type = TokenType::AccountPublic) { - if (parseBase58(TokenType::AccountPublic, strPk)) + if (parseBase58(type, strPk)) return true; auto pkHex = strUnHex(strPk); @@ -235,7 +237,7 @@ class RPCParser Json::Value jvRequest(Json::objectValue); std::string const strPk = jvParams[0u].asString(); - if (!validPublicKey(strPk)) + if (!validPublicKey(strPk, TokenType::NodePublic)) return rpcError(rpcPUBLIC_MALFORMED); jvRequest[jss::public_key] = strPk;