aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpc/util.cpp
diff options
context:
space:
mode:
authorBrokenProgrammer <brokenprogrammer@gmail.com>2022-06-14 20:54:45 +0200
committerBrokenProgrammer <brokenprogrammer@gmail.com>2022-06-14 20:54:45 +0200
commite3609cdc01cf992800f28b20b0107b7fdc1f880e (patch)
tree5fb9b909a5929f93a68a23be8e205601b9f5b2d5 /src/wallet/rpc/util.cpp
parent9e4fbebcc8e497016563e46de4c64fa094edab2d (diff)
downloadbitcoin-e3609cdc01cf992800f28b20b0107b7fdc1f880e.tar.xz
doc: Update importaddress mention incompatibility with descriptor wallet
Diffstat (limited to 'src/wallet/rpc/util.cpp')
-rw-r--r--src/wallet/rpc/util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/rpc/util.cpp b/src/wallet/rpc/util.cpp
index 59683c5fd8..4fcb393226 100644
--- a/src/wallet/rpc/util.cpp
+++ b/src/wallet/rpc/util.cpp
@@ -101,7 +101,7 @@ LegacyScriptPubKeyMan& EnsureLegacyScriptPubKeyMan(CWallet& wallet, bool also_cr
spk_man = wallet.GetOrCreateLegacyScriptPubKeyMan();
}
if (!spk_man) {
- throw JSONRPCError(RPC_WALLET_ERROR, "This type of wallet does not support this command");
+ throw JSONRPCError(RPC_WALLET_ERROR, "Only legacy wallets are supported by this command");
}
return *spk_man;
}
@@ -110,7 +110,7 @@ const LegacyScriptPubKeyMan& EnsureConstLegacyScriptPubKeyMan(const CWallet& wal
{
const LegacyScriptPubKeyMan* spk_man = wallet.GetLegacyScriptPubKeyMan();
if (!spk_man) {
- throw JSONRPCError(RPC_WALLET_ERROR, "This type of wallet does not support this command");
+ throw JSONRPCError(RPC_WALLET_ERROR, "Only legacy wallets are supported by this command");
}
return *spk_man;
}