Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.h
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_WALLET_DB_H | #ifndef BITCOIN_WALLET_DB_H | ||||
#define BITCOIN_WALLET_DB_H | #define BITCOIN_WALLET_DB_H | ||||
#include "clientversion.h" | #include <clientversion.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "serialize.h" | #include <serialize.h> | ||||
#include "streams.h" | #include <streams.h> | ||||
#include "sync.h" | #include <sync.h> | ||||
#include "version.h" | #include <version.h> | ||||
#include <db_cxx.h> | |||||
#include <atomic> | #include <atomic> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
#include <db_cxx.h> | |||||
static const unsigned int DEFAULT_WALLET_DBLOGSIZE = 100; | static const unsigned int DEFAULT_WALLET_DBLOGSIZE = 100; | ||||
static const bool DEFAULT_WALLET_PRIVDB = true; | static const bool DEFAULT_WALLET_PRIVDB = true; | ||||
class CDBEnv { | class CDBEnv { | ||||
private: | private: | ||||
bool fDbEnvInit; | bool fDbEnvInit; | ||||
bool fMockDb; | bool fMockDb; | ||||
// Don't change into fs::path, as that can result in | // Don't change into fs::path, as that can result in | ||||
▲ Show 20 Lines • Show All 359 Lines • Show Last 20 Lines |