Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
// 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. | ||||
#include "db.h" | #include <wallet/db.h> | ||||
#include "addrman.h" | #include <addrman.h> | ||||
#include "fs.h" | #include <fs.h> | ||||
#include "hash.h" | #include <hash.h> | ||||
#include "protocol.h" | #include <protocol.h> | ||||
#include "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "wallet/walletutil.h" | #include <wallet/walletutil.h> | ||||
#include <boost/thread.hpp> | #include <boost/thread.hpp> | ||||
#include <boost/version.hpp> | #include <boost/version.hpp> | ||||
#include <cstdint> | #include <cstdint> | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#endif | #endif | ||||
namespace { | namespace { | ||||
//! Make sure database has a unique fileid within the environment. If it | //! Make sure database has a unique fileid within the environment. If it | ||||
//! doesn't, throw an error. BDB caches do not work properly when more than one | //! doesn't, throw an error. BDB caches do not work properly when more than one | ||||
//! open database has the same fileid (values written to one database may show | //! open database has the same fileid (values written to one database may show | ||||
▲ Show 20 Lines • Show All 766 Lines • Show Last 20 Lines |