Commit Graph

97 Commits (4d83038714e4f099529e4372ef04f8f947c3a421)

Author SHA1 Message Date
fanquake ebc4ab721b
refactor: post Optional<> removal cleanups
4 years ago
fanquake 57e980d13c
scripted-diff: remove Optional & nullopt
4 years ago
fanquake 3ba2840e7e
scripted-diff: remove MakeUnique<T>()
4 years ago
Russell Yanofsky d70dc89e78 refactor: Consolidate redundant wallet database path and exists functions
4 years ago
Russell Yanofsky 6ee9cbdd18 refactor: Replace ListWalletDir() function with ListDatabases()
4 years ago
Russell Yanofsky 5aaeb6cf87 MOVEONLY: Move IsBDBFile, IsSQLiteFile, and ListWalletDir
4 years ago
João Barbosa 5e737a0092 rpc, wallet: Expose database format in getwalletinfo
4 years ago
Andrew Chow ac38a87225 Determine wallet file type based on file magic
4 years ago
Ivan Metlushko 135afa749c wallet: remove db mode string
4 years ago
Akio Nakamura 8b39a87558 bugfix: make LoadWallet assigns status always
4 years ago
Russell Yanofsky 8b5e7297c0 refactor: Pass wallet database into CWallet::Create
4 years ago
Russell Yanofsky 3c815cfe54 wallet: Remove Verify and IsLoaded methods
4 years ago
Russell Yanofsky 0d94e60625 refactor: Use DatabaseStatus and DatabaseOptions types
4 years ago
Russell Yanofsky b5b414151a wallet: Add MakeDatabase function
4 years ago
Andrew Chow 0103d6434e Introduce DummyDatabase and use it in the tests
4 years ago
Andrew Chow d416ae560e walletdb: Introduce WalletDatabase abstract class
4 years ago
Andrew Chow eac9200814 walletdb: Refactor DatabaseBatch abstract class from BerkeleyBatch
4 years ago
Andrew Chow 61c16339da walletdb: Move BDB specific things into bdb.{cpp/h}
4 years ago
Andrew Chow 8f033642a8 walletdb: moveonly: Move BerkeleyBatch Cursor and Txn funcs to cpp
4 years ago
Andrew Chow 25a655794a walletdb: move IsWalletLoaded to walletdb.cpp
4 years ago
Andrew Chow f6fc5f3849 walletdb: Add IsBDBWalletLoaded to look for BDB wallets specifically
4 years ago
Andrew Chow c3538f435a walletdb: Make SpliWalletFilePath non-static
4 years ago
Andrew Chow 9ea2d258b4 Move RecoverDatabaseFile and RecoverKeysOnlyFilter into salvage.{cpp/h}
5 years ago
Andrew Chow b426c7764d Make BerkeleyBatch::Recover and WalletBatch::RecoverKeysOnlyFilter standalone
5 years ago
Andrew Chow ced95d0e43 Move BerkeleyEnvironment::Salvage into BerkeleyBatch::Recover
5 years ago
Andrew Chow 07250b8dce walletdb: remove fAggressive from Salvage
5 years ago
Andrew Chow 8ebcbc85c6 walletdb: don't automatically salvage when corruption is detected
5 years ago
Hennadii Stepanov 839add193b
build: Enable -Wsuggest-override
5 years ago
Hennadii Stepanov de5e91c303
refactor: Add BerkeleyDatabaseVersion() function
5 years ago
MarcoFalke fae51a5c6f
wallet: Avoid translating RPC errors when loading wallets
5 years ago
MarcoFalke fa488f131f
scripted-diff: Bump copyright headers
5 years ago
Karl-Johan Alm 7b3587b29d
wallet/db: make IsDummy() const
5 years ago
Karl-Johan Alm d366795d18
wallet/db: make Backup() const
5 years ago
Wladimir J. van der Laan a22b62481a
Merge #17070: wallet: Avoid showing GUI popups on RPC errors
5 years ago
practicalswift 084e17cebd Remove unused includes
5 years ago
MarcoFalke facec1c643
wallet: Avoid showing GUI popups on RPC errors
5 years ago
MeshCollider febf3a856b
Merge #15588: Log the actual wallet file version and no longer publicly expose the "version" record
5 years ago
Andrew Chow 35e60e790f Remove ReadVersion and WriteVersion
5 years ago
MarcoFalke aaaa57c2aa
scripted-diff: Bump copyright headers in wallet
6 years ago
Glenn Willen faf3698808 wallet: Improve log output for errors during load
6 years ago
Wladimir J. van der Laan efb6ddef9c
Merge #11911: Free BerkeleyEnvironment instances when not in use
6 years ago
Wladimir J. van der Laan d44b01f028
Merge #14268: Introduce SafeDbt to handle Dbt with free or memory_cleanse raii-style
6 years ago
Russell Yanofsky f1f4bb7345 Free BerkeleyEnvironment instances when not in use
6 years ago
Ben Woosley 4a86a0acd9
Make SafeDbt DB_DBT_MALLOC on default initialization
6 years ago
Ben Woosley 1a9f9f7e5e
Introduce SafeDbt to handle DB_DBT_MALLOC raii-style
6 years ago
Chun Kuan Lee 591203149f wallet: Create IsDatabaseLoaded function
6 years ago
Chun Kuan Lee 15c93f075a wallet: Add trailing wallet.dat when detecting duplicate wallet if it's a directory.
6 years ago
Russell Yanofsky c456fbd8df Refactor: Move m_db pointers into BerkeleyDatabase
6 years ago
Jim Posen 2068f089c8 scripted-diff: Move util files to separate directory.
6 years ago
Chun Kuan Lee 2d796faf62 wallet: Fix duplicate fileid
6 years ago