bitcoin/src/wallet/test
MarcoFalke ffc4d04990
Merge #20275: wallet: List all wallets in non-SQLite and non-BDB builds
f3d870fc22 wallet: List all wallets in non-SQLite or non-BDB builds (Russell Yanofsky)
d70dc89e78 refactor: Consolidate redundant wallet database path and exists functions (Russell Yanofsky)
6a7a63644c refactor: Drop call to GetWalletEnv in wallet salvage code (Russell Yanofsky)
6ee9cbdd18 refactor: Replace ListWalletDir() function with ListDatabases() (Russell Yanofsky)
5aaeb6cf87 MOVEONLY: Move IsBDBFile, IsSQLiteFile, and ListWalletDir (Russell Yanofsky)

Pull request description:

  This PR does not change behavior when bitcoin is built normally with both the SQLite and BDB libraries. It just makes non-SQLite and non-BDB builds more similar to the normal build. Specifically:

  - It makes wallet directory lists always include all wallets so wallets don't appear missing depending on the build.

  - It now triggers specific "Build does not support SQLite database format" and "Build does not support Berkeley DB database format" errors if a wallet can't be loaded instead of the more ambiguous and scary "Data is not in recognized format" error.

  Both changes are implemented in the last commit. The previous commits are just refactoring cleanups that make the last commit possible and consolidate and reduce code.

ACKs for top commit:
  achow101:
    ACK f3d870fc22
  promag:
    Tested ACK f3d870fc22. Tested a --without-sqlite build with sqlite wallets.

Tree-SHA512: 029ad21559dbc338b5f351d05113c51bc25bce830f4f4e18bcd82287bc528275347a60249da65b91d252632aeb70b25d057bd59c704bfcaafb9f790bc5b59762
2020-12-12 09:20:11 +01:00
..
coinselector_tests.cpp test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
db_tests.cpp refactor: Consolidate redundant wallet database path and exists functions 2020-12-04 11:03:28 -04:00
init_test_fixture.cpp test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
init_test_fixture.h test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
init_tests.cpp refactor: Move wallet methods out of chain.h and node.h 2020-08-27 14:33:00 -04:00
ismine_tests.cpp test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
psbt_wallet_tests.cpp psbt: always put a non_witness_utxo and don't remove it 2020-06-24 16:32:19 -04:00
scriptpubkeyman_tests.cpp test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
wallet_crypto_tests.cpp refactor: Replace HexStr(o.begin(), o.end()) with HexStr(o) 2020-06-24 18:41:45 +02:00
wallet_test_fixture.cpp test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
wallet_test_fixture.h test: Remove no longer needed MakeChain calls 2020-12-07 20:46:03 -05:00
wallet_tests.cpp test: Fix inconsistent lock order in wallet_tests/CreateWallet 2020-12-10 20:49:06 +02:00
walletdb_tests.cpp Tests: Unit test related to WalletDB ReadKeyValue 2020-03-10 07:42:31 +00:00