We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004b184 commit 6e01062Copy full SHA for 6e01062
src/wallet/bdb.cpp
@@ -29,6 +29,8 @@
29
#endif
30
31
32
+static_assert(BDB_DB_FILE_ID_LEN == DB_FILE_ID_LEN, "DB_FILE_ID_LEN should be 20.");
33
+
34
namespace wallet {
35
namespace {
36
src/wallet/bdb.h
@@ -25,10 +25,14 @@
25
26
struct bilingual_str;
27
28
+// This constant was introduced in BDB 4.0.14 and has never changed, but there
+// is a belt-and-suspenders check in the cpp file just in case.
+#define BDB_DB_FILE_ID_LEN 20 /* Unique file ID length. */
struct WalletDatabaseFileId {
- uint8_t value[DB_FILE_ID_LEN];
+ uint8_t value[BDB_DB_FILE_ID_LEN];
bool operator==(const WalletDatabaseFileId& rhs) const;
37
};
38
0 commit comments