diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-07-16 13:41:07 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2024-01-06 12:40:19 -0300 |
commit | a2b071f9920c2f4893afcc43a152f593c03966bf (patch) | |
tree | 4d3fa397057e2f50b05e544a5f2b2d2d3a4658cf /src/wallet/wallet.cpp | |
parent | 160d23677ad799cf9b493eaa923b2ac080c3fb8e (diff) | |
download | bitcoin-a2b071f9920c2f4893afcc43a152f593c03966bf.tar.xz |
wallet: ZapSelectTx, remove db rewrite code
The function does not return DBErrors::NEED_REWRITE.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index c34bf96b5e..032b1fed20 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2324,16 +2324,6 @@ DBErrors CWallet::ZapSelectTx(std::vector<uint256>& vHashIn, std::vector<uint256 NotifyTransactionChanged(hash, CT_DELETED); } - if (nZapSelectTxRet == DBErrors::NEED_REWRITE) - { - if (GetDatabase().Rewrite("\x04pool")) - { - for (const auto& spk_man_pair : m_spk_managers) { - spk_man_pair.second->RewriteDB(); - } - } - } - if (nZapSelectTxRet != DBErrors::LOAD_OK) return nZapSelectTxRet; |