diff options
author | S3RK <1466284+S3RK@users.noreply.github.com> | 2021-06-28 21:37:37 +0200 |
---|---|---|
committer | S3RK <1466284+S3RK@users.noreply.github.com> | 2021-06-28 21:37:37 +0200 |
commit | bf68ebc1cd555f791103f81adc9111e0e55c8003 (patch) | |
tree | afbc1236be46e64d0cbaf91df75e14d5445f5397 /src/wallet/scriptpubkeyman.h | |
parent | 8cdf91735f2bdc55577d84a9915f5920ce23b00a (diff) | |
download | bitcoin-bf68ebc1cd555f791103f81adc9111e0e55c8003.tar.xz |
wallet: allow to import same descriptor twice
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r-- | src/wallet/scriptpubkeyman.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h index b2ca354b0a..f2d1d87d55 100644 --- a/src/wallet/scriptpubkeyman.h +++ b/src/wallet/scriptpubkeyman.h @@ -624,6 +624,8 @@ public: bool AddCryptedKey(const CKeyID& key_id, const CPubKey& pubkey, const std::vector<unsigned char>& crypted_key); bool HasWalletDescriptor(const WalletDescriptor& desc) const; + void UpdateWalletDescriptor(WalletDescriptor& descriptor); + bool CanUpdateToWalletDescriptor(const WalletDescriptor& descriptor, std::string& error); void AddDescriptorKey(const CKey& key, const CPubKey &pubkey); void WriteDescriptor(); |