From 9f0543d69a1357371017c8289d9addc457b6f132 Mon Sep 17 00:00:00 2001 From: jeanpablo Date: Tue, 1 Sep 2026 13:22:44 +0100 Subject: [PATCH] wallet: remove unused DatabaseOptions members `use_shared_memory` and `max_log_mb` are never read or written; they only ever hold their initializers. Their last readers, in `GetBerkeleyEnv()` and the `BerkeleyDatabase` constructor, were removed in 04a7a7a28c ("build, wallet, doc: Remove BDB"), along with the `-privdb` and `-dblogsize` options that set them. Co-authored-by: pablomartin4btc --- src/wallet/db.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wallet/db.h b/src/wallet/db.h index 6d76d14abf9..c0476636f07 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -175,8 +175,6 @@ struct DatabaseOptions { // Specialized options. Not every option is supported by every backend. bool verify = true; //!< Check data integrity on load. bool use_unsafe_sync = false; //!< Disable file sync for faster performance. - bool use_shared_memory = false; //!< Let other processes access the database. - int64_t max_log_mb = 100; //!< Max log size to allow before consolidating. }; enum class DatabaseStatus {