This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
    if (!fFileBacked)
        return DB_LOAD_OK;
    DBErrors nZapSelectTxRet = CWalletDB(strWalletFile,"cr+").ZapSelectTx(this, vHashIn, vHashOut);
    if (nZapSelectTxRet == DB_NEED_REWRITE)
    {
        if (CDB::Rewrite(strWalletFile, "\x04pool"))
        {
            LOCK(cs_wallet);
            setKeyPool.clear();
            
            
            
        }
    }
    if (nZapSelectTxRet != DB_LOAD_OK)
        return nZapSelectTxRet;
    MarkDirty();
    return DB_LOAD_OK;
}
DBErrors CWallet::ZapWalletTx(std::vector<CWalletTx>& vWtx)