aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/salvage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* wallet: Remove path checking code from bitcoin-wallet toolRussell Yanofsky2020-09-031-0/+7
| | | | | This commit does not change behavior except for error messages which now include more complete information.
* Remove WalletLocation classRussell Yanofsky2020-09-031-1/+1
| | | | | | | | | | | This removes a source of complexity and indirection that makes it harder to understand path checking code. Path checks will be simplified in upcoming commits. There is no change in behavior in this commit other than a slightly more descriptive error message in `loadwallet` if the default "" wallet can't be found. (The error message is improved more in upcoming commit "wallet: Remove path checking code from loadwallet RPC".)
* wallet: filter for keys only before record deser in salvageAndrew Chow2020-08-251-2/+7
| | | | | When salvaging a wallet, avoid deserializing any records that we don't care about, i.e. filter for keys only before the deserialization.
* wallettool: Have RecoverDatabaseFile return errors and warningsAndrew Chow2020-07-261-16/+11
| | | | | Instead of logging or printing these errors and warnings, return them to the caller.
* walletdb: Don't remove database transaction logs and instead errorAndrew Chow2020-07-131-2/+4
| | | | | | | | | 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.
* walletdb: Combine VerifyDatabaseFile and VerifyEnvironmentAndrew Chow2020-07-011-0/+5
| | | | | Combine these two functions into a single Verify function that is a member of WalletDatabase. Additionally, these are no longer static.
* scripted-diff: Replace WalletDatabase::Create* with CreateWalletDatabaseAndrew Chow2020-06-171-1/+1
| | | | | | | | -BEGIN VERIFY SCRIPT- sed -i -e 's/WalletDatabase::Create(/CreateWalletDatabase(/g' `git grep -l "WalletDatabase::Create("` sed -i -e 's/WalletDatabase::CreateDummy(/CreateDummyWalletDatabase(/g' `git grep -l "WalletDatabase::CreateDummy("` sed -i -e 's/WalletDatabase::CreateMock(/CreateMockWalletDatabase(/g' `git grep -l "WalletDatabase::CreateMock("` -END VERIFY SCRIPT-
* Move RecoverKeysOnlyFilter into RecoverDataBaseFileAndrew Chow2020-05-251-29/+19
|
* Move RecoverDatabaseFile and RecoverKeysOnlyFilter into salvage.{cpp/h}Andrew Chow2020-05-251-0/+160