aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorS3RK <1466284+S3RK@users.noreply.github.com>2021-06-28 21:37:53 +0200
committerS3RK <1466284+S3RK@users.noreply.github.com>2021-06-28 21:44:50 +0200
commit3efaf83c75cd8dc2fa084537b8ed6715fb58c04d (patch)
tree5cfbf5602d4d1379935bee09713a555bc4970b4a /src/wallet/rpcdump.cpp
parent6737d9655bcf527afbd85d610d805a2d0fd28c4f (diff)
downloadbitcoin-3efaf83c75cd8dc2fa084537b8ed6715fb58c04d.tar.xz
wallet: deactivate descriptor
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 5f0d88288f..7de12c3a94 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -1584,6 +1584,10 @@ static UniValue ProcessDescriptorImport(CWallet& wallet, const UniValue& data, c
} else {
wallet.AddActiveScriptPubKeyMan(spk_manager->GetID(), *w_desc.descriptor->GetOutputType(), internal);
}
+ } else {
+ if (w_desc.descriptor->GetOutputType()) {
+ wallet.DeactivateScriptPubKeyMan(spk_manager->GetID(), *w_desc.descriptor->GetOutputType(), internal);
+ }
}
result.pushKV("success", UniValue(true));