Auto merge of #3907 - LarryRuane:3860-enable-debug-build, r=daira
fix enable-debug build DB_COINS undefined Fixes #3860. The way `DB_COINS` is defined in this PR is the same as in `src/txdb.cpp` (static "global" instead of class member).
This commit is contained in:
commit
33548140d9
|
@ -453,9 +453,11 @@ double benchmark_increment_sapling_note_witnesses(size_t nTxs)
|
||||||
// This class is based on the class CCoinsViewDB, but with limited functionality.
|
// This class is based on the class CCoinsViewDB, but with limited functionality.
|
||||||
// The construtor and the functions `GetCoins` and `HaveCoins` come directly from
|
// The construtor and the functions `GetCoins` and `HaveCoins` come directly from
|
||||||
// CCoinsViewDB, but the rest are either mocks and/or don't really do anything.
|
// CCoinsViewDB, but the rest are either mocks and/or don't really do anything.
|
||||||
|
|
||||||
|
// The following constant is a duplicate of the one found in txdb.cpp
|
||||||
|
static const char DB_COINS = 'c';
|
||||||
|
|
||||||
class FakeCoinsViewDB : public CCoinsView {
|
class FakeCoinsViewDB : public CCoinsView {
|
||||||
// The following constant is a duplicate of the one found in txdb.cpp
|
|
||||||
static const char DB_COINS = 'c';
|
|
||||||
|
|
||||||
CDBWrapper db;
|
CDBWrapper db;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue