Restore BDB block index wrapper and enable it by default.
[novacoin.git] / src / txdb.h
index a8e9f5b..939e59d 100644 (file)
@@ -6,6 +6,15 @@
 #ifndef BITCOIN_TXDB_H
 #define BITCOIN_TXDB_H
 
+// Allow switching between LevelDB and BerkelyDB here in case we need to temporarily
+// go back to BDB for any reason. Once we're confident enough with LevelDB to stick
+// with it, this can be deleted.
+
+#ifdef USE_LEVELDB
 #include "txdb-leveldb.h"
+#else
+#include "db.h"
+#include "txdb-bdb.h"
+#endif
 
 #endif  // BITCOIN_TXDB_H