From a52f1d13409e4ef46277596ec13fa8b421fa1329 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 22 Oct 2021 17:33:24 -0400 Subject: [PATCH] walletdb: Use SQLiteDatabase for mock wallet databases Default to SQLiteDatabase instead of BerkeleyDatabase for CreateDummyWalletDatabase. Most tests already use descriptor wallets and the mock db doesn't really matter for tests. The tests where it does matter will make the db directly. --- src/wallet/walletdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index a6839f1f784..c920d4af51e 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -1188,9 +1188,9 @@ std::unique_ptr CreateDummyWalletDatabase() /** Return object for accessing temporary in-memory database. */ std::unique_ptr CreateMockWalletDatabase() { -#ifdef USE_BDB - return std::make_unique(std::make_shared(), ""); -#elif USE_SQLITE +#ifdef USE_SQLITE return std::make_unique("", "", true); +#elif USE_BDB + return std::make_unique(std::make_shared(), ""); #endif }