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/dump.cpp | |
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/dump.cpp')
-rw-r--r-- | src/wallet/dump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/dump.cpp b/src/wallet/dump.cpp index 970830754d..db2756e0ca 100644 --- a/src/wallet/dump.cpp +++ b/src/wallet/dump.cpp @@ -186,6 +186,8 @@ bool CreateFromDump(const ArgsManager& args, const std::string& name, const fs:: data_format = DatabaseFormat::BERKELEY; } else if (file_format == "sqlite") { data_format = DatabaseFormat::SQLITE; + } else if (file_format == "bdb_swap") { + data_format = DatabaseFormat::BERKELEY_SWAP; } else { error = strprintf(_("Unknown wallet file format \"%s\" provided. Please provide one of \"bdb\" or \"sqlite\"."), file_format); return false; |