Skip to content

Commit a2b071f

Browse files
committed
wallet: ZapSelectTx, remove db rewrite code
The function does not return DBErrors::NEED_REWRITE.
1 parent 160d236 commit a2b071f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/wallet/wallet.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2324,16 +2324,6 @@ DBErrors CWallet::ZapSelectTx(std::vector<uint256>& vHashIn, std::vector<uint256
23242324
NotifyTransactionChanged(hash, CT_DELETED);
23252325
}
23262326

2327-
if (nZapSelectTxRet == DBErrors::NEED_REWRITE)
2328-
{
2329-
if (GetDatabase().Rewrite("\x04pool"))
2330-
{
2331-
for (const auto& spk_man_pair : m_spk_managers) {
2332-
spk_man_pair.second->RewriteDB();
2333-
}
2334-
}
2335-
}
2336-
23372327
if (nZapSelectTxRet != DBErrors::LOAD_OK)
23382328
return nZapSelectTxRet;
23392329

0 commit comments

Comments
 (0)