From 2d8a48292b0da96cda8d7b45a24a22adfb4667b2 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Mon, 3 Sep 2012 21:14:03 +0200 Subject: LevelDB block and coin databases Split off CBlockTreeDB and CCoinsViewDB into txdb-*.{cpp,h} files, implemented by either LevelDB or BDB. Based on code from earlier commits by Mike Hearn in his leveldb branch. --- src/txdb.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/txdb.h (limited to 'src/txdb.h') diff --git a/src/txdb.h b/src/txdb.h new file mode 100644 index 0000000000..e21a1e6774 --- /dev/null +++ b/src/txdb.h @@ -0,0 +1,14 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2012 The Bitcoin developers +// Distributed under the MIT/X11 software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. +#ifndef BITCOIN_TXDB_H +#define BITCOIN_TXDB_H + +#ifdef USE_LEVELDB +#include "txdb-leveldb.h" +#else +#include "txdb-bdb.h" +#endif + +#endif // BITCOIN_TXDB_H -- cgit v1.2.3