From 6ace3e953f0864bd7818f040c59a1bc70aa47512 Mon Sep 17 00:00:00 2001 From: Ava Chow Date: Mon, 22 Apr 2024 15:21:58 -0400 Subject: bdb: Be able to make byteswapped databases Byteswapped databases make it easier to test opening and deserializing other endian databases. --- src/wallet/bdb.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet/bdb.h') diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h index 630630ebe0..af0c78f0d9 100644 --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -147,6 +147,9 @@ public: /** Database pointer. This is initialized lazily and reset during flushes, so it can be null. */ std::unique_ptr m_db; + // Whether to byteswap + bool m_byteswap; + fs::path m_filename; int64_t m_max_log_mb; -- cgit v1.2.3