update some docs
This commit is contained in:
@@ -156,10 +156,10 @@ UniValue importprivkey(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
|
|
||||||
if (fHelp || params.size() < 1 || params.size() > 5)
|
if (fHelp || params.size() < 1 || params.size() > 5)
|
||||||
throw runtime_error(
|
throw runtime_error(
|
||||||
"importprivkey \"komodoprivkey\" ( \"label\" rescan height secret_key)\n"
|
"importprivkey \"hushprivkey\" ( \"label\" rescan height secret_key)\n"
|
||||||
"\nAdds a private key (as returned by dumpprivkey) to your wallet.\n"
|
"\nAdds a private key (as returned by dumpprivkey) to your wallet.\n"
|
||||||
"\nArguments:\n"
|
"\nArguments:\n"
|
||||||
"1. \"komodoprivkey\" (string, required) The private key (see dumpprivkey)\n"
|
"1. \"hushprivkey\" (string, required) The private key (see dumpprivkey)\n"
|
||||||
"2. \"label\" (string, optional, default=\"\") An optional label\n"
|
"2. \"label\" (string, optional, default=\"\") An optional label\n"
|
||||||
"3. rescan (boolean, optional, default=true) Rescan the wallet for transactions\n"
|
"3. rescan (boolean, optional, default=true) Rescan the wallet for transactions\n"
|
||||||
"4. height (integer, optional, default=0) start at block height?\n"
|
"4. height (integer, optional, default=0) start at block height?\n"
|
||||||
@@ -525,7 +525,7 @@ UniValue z_exportwallet(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
"z_exportwallet \"filename\"\n"
|
"z_exportwallet \"filename\"\n"
|
||||||
"\nExports all wallet keys, for taddr and zaddr, in a human-readable format. Overwriting an existing file is not permitted.\n"
|
"\nExports all wallet keys, for taddr and zaddr, in a human-readable format. Overwriting an existing file is not permitted.\n"
|
||||||
"\nArguments:\n"
|
"\nArguments:\n"
|
||||||
"1. \"filename\" (string, required) The filename, saved in folder set by komodod -exportdir option\n"
|
"1. \"filename\" (string, required) The filename, saved in folder set by hushd -exportdir option\n"
|
||||||
"\nResult:\n"
|
"\nResult:\n"
|
||||||
"\"path\" (string) The full path of the destination file\n"
|
"\"path\" (string) The full path of the destination file\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
@@ -546,7 +546,7 @@ UniValue dumpwallet(const UniValue& params, bool fHelp, const CPubKey& mypk)
|
|||||||
"dumpwallet \"filename\"\n"
|
"dumpwallet \"filename\"\n"
|
||||||
"\nDumps taddr wallet keys in a human-readable format. Overwriting an existing file is not permitted.\n"
|
"\nDumps taddr wallet keys in a human-readable format. Overwriting an existing file is not permitted.\n"
|
||||||
"\nArguments:\n"
|
"\nArguments:\n"
|
||||||
"1. \"filename\" (string, required) The filename, saved in folder set by komodod -exportdir option\n"
|
"1. \"filename\" (string, required) The filename, saved in folder set by hushd -exportdir option\n"
|
||||||
"\nResult:\n"
|
"\nResult:\n"
|
||||||
"\"path\" (string) The full path of the destination file\n"
|
"\"path\" (string) The full path of the destination file\n"
|
||||||
"\nExamples:\n"
|
"\nExamples:\n"
|
||||||
@@ -570,7 +570,7 @@ UniValue dumpwallet_impl(const UniValue& params, bool fHelp, bool fDumpZKeys)
|
|||||||
throw JSONRPCError(RPC_INTERNAL_ERROR, e.what());
|
throw JSONRPCError(RPC_INTERNAL_ERROR, e.what());
|
||||||
}
|
}
|
||||||
if (exportdir.empty()) {
|
if (exportdir.empty()) {
|
||||||
throw JSONRPCError(RPC_WALLET_ERROR, "Cannot export wallet until the komodod -exportdir option has been set");
|
throw JSONRPCError(RPC_WALLET_ERROR, "Cannot export wallet until the hushd -exportdir option has been set");
|
||||||
}
|
}
|
||||||
std::string unclean = params[0].get_str();
|
std::string unclean = params[0].get_str();
|
||||||
std::string clean = SanitizeFilename(unclean);
|
std::string clean = SanitizeFilename(unclean);
|
||||||
|
|||||||
Reference in New Issue
Block a user