mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-21 14:22:38 +02:00
wallet: bdb: don't use bdb define in header
This commit is contained in:
parent
004b184b02
commit
6e010626af
@ -29,6 +29,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static_assert(BDB_DB_FILE_ID_LEN == DB_FILE_ID_LEN, "DB_FILE_ID_LEN should be 20.");
|
||||
|
||||
namespace wallet {
|
||||
namespace {
|
||||
|
||||
|
@ -25,10 +25,14 @@
|
||||
|
||||
struct bilingual_str;
|
||||
|
||||
// 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. */
|
||||
|
||||
namespace wallet {
|
||||
|
||||
struct WalletDatabaseFileId {
|
||||
uint8_t value[DB_FILE_ID_LEN];
|
||||
uint8_t value[BDB_DB_FILE_ID_LEN];
|
||||
bool operator==(const WalletDatabaseFileId& rhs) const;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user