diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index abac194ba..31e83e4b5 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -34,6 +34,15 @@ #include #include +// Out-of-line definitions for CHDChain's in-class static constants. These are +// only initialised in the class body, so any ODR use -- binding one to a const +// reference, which is exactly what gtest's EXPECT_*/ASSERT_* macros do -- needs +// a definition or the link fails. hush-gtest hit this on VERSION_HD_MNEMONIC. +const int CHDChain::VERSION_HD_BASE; +const int CHDChain::VERSION_HD_TRANSPARENT; +const int CHDChain::VERSION_HD_MNEMONIC; +const int CHDChain::CURRENT_VERSION; + using namespace std; static uint64_t nAccountingEntryNumber = 0;