Changeset View
Changeset View
Standalone View
Standalone View
src/dbwrapper.h
// Copyright (c) 2012-2016 The Bitcoin Core developers | // Copyright (c) 2012-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_DBWRAPPER_H | #ifndef BITCOIN_DBWRAPPER_H | ||||
#define BITCOIN_DBWRAPPER_H | #define BITCOIN_DBWRAPPER_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 "util.h" | #include <util.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include "version.h" | #include <version.h> | ||||
#include <leveldb/db.h> | #include <leveldb/db.h> | ||||
#include <leveldb/write_batch.h> | #include <leveldb/write_batch.h> | ||||
static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64; | static const size_t DBWRAPPER_PREALLOC_KEY_SIZE = 64; | ||||
static const size_t DBWRAPPER_PREALLOC_VALUE_SIZE = 1024; | static const size_t DBWRAPPER_PREALLOC_VALUE_SIZE = 1024; | ||||
class dbwrapper_error : public std::runtime_error { | class dbwrapper_error : public std::runtime_error { | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |