Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/rpcwallet.cpp
Show First 20 Lines • Show All 4,495 Lines • ▼ Show 20 Lines | if (request.fHelp || request.params.size() > 2) { | ||||
}} | }} | ||||
.ToString() + | .ToString() + | ||||
"\nExamples:\n" + HelpExampleCli("sethdseed", "") + | "\nExamples:\n" + HelpExampleCli("sethdseed", "") + | ||||
HelpExampleCli("sethdseed", "false") + | HelpExampleCli("sethdseed", "false") + | ||||
HelpExampleCli("sethdseed", "true \"wifkey\"") + | HelpExampleCli("sethdseed", "true \"wifkey\"") + | ||||
HelpExampleRpc("sethdseed", "true, \"wifkey\"")); | HelpExampleRpc("sethdseed", "true, \"wifkey\"")); | ||||
} | } | ||||
if (IsInitialBlockDownload()) { | if (pwallet->chain().isInitialBlockDownload()) { | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_CLIENT_IN_INITIAL_DOWNLOAD, | RPC_CLIENT_IN_INITIAL_DOWNLOAD, | ||||
"Cannot set a new HD seed while still in Initial Block Download"); | "Cannot set a new HD seed while still in Initial Block Download"); | ||||
} | } | ||||
if (pwallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) { | if (pwallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) { | ||||
throw JSONRPCError( | throw JSONRPCError( | ||||
RPC_WALLET_ERROR, | RPC_WALLET_ERROR, | ||||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |