aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.h
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-09-29 15:20:25 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-11-21 23:01:42 -0300
commit1f65241b733cd1e962c88909ae66816bc6451fd1 (patch)
treea69a8cdf0d0ab7cd505c6eeecdc18c2e2d90f9f2 /src/wallet/scriptpubkeyman.h
parent3eb769f15013873755e482707cad341bc1ce8a8c (diff)
downloadbitcoin-1f65241b733cd1e962c88909ae66816bc6451fd1.tar.xz
wallet: descriptors setup, batch db operations
Instead of doing one db transaction per descriptor setup, batch all descriptors' setup writes in a single db txn. Speeding up the process and preventing the wallet from entering an inconsistent state if any of the intermediate transactions fail.
Diffstat (limited to 'src/wallet/scriptpubkeyman.h')
-rw-r--r--src/wallet/scriptpubkeyman.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.h b/src/wallet/scriptpubkeyman.h
index a0e9dbb6c2..936c76c223 100644
--- a/src/wallet/scriptpubkeyman.h
+++ b/src/wallet/scriptpubkeyman.h
@@ -621,7 +621,7 @@ public:
bool IsHDEnabled() const override;
//! Setup descriptors based on the given CExtkey
- bool SetupDescriptorGeneration(const CExtKey& master_key, OutputType addr_type, bool internal);
+ bool SetupDescriptorGeneration(WalletBatch& batch, const CExtKey& master_key, OutputType addr_type, bool internal);
/** Provide a descriptor at setup time
* Returns false if already setup or setup fails, true if setup is successful