Page MenuHomePhabricator

walletdb: Don't remove database transaction logs and instead error
ClosedPublic

Authored by PiRK on Mon, Jun 7, 07:51.

Details

Summary

Instead of removing the database transaction logs and retrying the
wallet loading, just return an error message to the user. Additionally,
specifically for DB_RUNRECOVERY, notify the user that this could be due
to different BDB versions. This error is pretty much only caused by
compiling with a newer version of BDB and then trying to open the wallet
with a version compiled with an older version of BDB.

This is a backport of core#18907

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable