diff --git a/src/blsct/wallet/keyman.cpp b/src/blsct/wallet/keyman.cpp index b54851786da0f..00cfc26ef1962 100644 --- a/src/blsct/wallet/keyman.cpp +++ b/src/blsct/wallet/keyman.cpp @@ -474,8 +474,8 @@ blsct::PrivateKey KeyMan::GetMasterSeedKey() const blsct::PrivateKey KeyMan::GetPrivateViewKey() const { - if (!IsHDEnabled()) - throw std::runtime_error(strprintf("%s: the wallet has no HD enabled")); + if (!fViewKeyDefined) + throw std::runtime_error(strprintf("%s: the wallet has no view key available")); auto viewId = m_hd_chain.view_id; diff --git a/src/wallet/rpc/backup.cpp b/src/wallet/rpc/backup.cpp index 9fd7d593fa186..50d7cd622bbe9 100644 --- a/src/wallet/rpc/backup.cpp +++ b/src/wallet/rpc/backup.cpp @@ -722,7 +722,7 @@ RPCHelpMan getblsctviewkey() {}, RPCResult{ RPCResult::Type::STR, "viewkey", "The BLSCT wallet private view key"}, - RPCExamples{HelpExampleCli("getblsctviewkey", "") + HelpExampleRpc("getblsctseed", "")}, + RPCExamples{HelpExampleCli("getblsctviewkey", "") + HelpExampleRpc("getblsctviewkey", "")}, [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue { const std::shared_ptr pwallet = GetWalletForJSONRPCRequest(request); if (!pwallet) return UniValue::VNULL;