mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-03 20:35:17 +02:00
doc: Update importaddress mention incompatibility with descriptor wallet
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user