diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-09-29 15:20:25 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-11-21 23:01:42 -0300 |
commit | 1f65241b733cd1e962c88909ae66816bc6451fd1 (patch) | |
tree | a69a8cdf0d0ab7cd505c6eeecdc18c2e2d90f9f2 /src/wallet/scriptpubkeyman.h | |
parent | 3eb769f15013873755e482707cad341bc1ce8a8c (diff) | |
download | bitcoin-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.h | 2 |
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 |