wallet: ZapSelectTx, remove db rewrite code

The function does not return DBErrors::NEED_REWRITE.
This commit is contained in:
furszy committed 2024-01-06 12:40:19 -03:00
1 parent 160d23677a
commit a2b071f992
1 file changed
-10
-10
View File
@@ -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;