wallet: ZapSelectTx, remove db rewrite code

The function does not return DBErrors::NEED_REWRITE.
This commit is contained in:
furszy 2023-07-16 13:41:07 -03:00
parent 160d23677a
commit a2b071f992
No known key found for this signature in database
GPG key ID: 5DD23CCC686AA623

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;