diff options
author | Ava Chow <github@achow101.com> | 2024-04-22 15:21:58 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-05-16 15:03:13 -0400 |
commit | 6ace3e953f0864bd7818f040c59a1bc70aa47512 (patch) | |
tree | 0e7a61a16252335339f8c1045942f4b7b69bb4db /src/wallet/bdb.h | |
parent | d9878903fb34939dee8e1462f079acc68110253d (diff) | |
download | bitcoin-6ace3e953f0864bd7818f040c59a1bc70aa47512.tar.xz |
bdb: Be able to make byteswapped databases
Byteswapped databases make it easier to test opening and deserializing
other endian databases.
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r-- | src/wallet/bdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<Db> m_db; + // Whether to byteswap + bool m_byteswap; + fs::path m_filename; int64_t m_max_log_mb; |