6 #ifndef BITCOIN_TXDB_LEVELDB_H
7 #define BITCOIN_TXDB_LEVELDB_H
24 static const int64_t
nMaxDbCache =
sizeof(
void*) > 4 ? 4096 : 1024;
34 CCoinsViewDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
41 bool BatchWrite(
const std::map<uint256, CCoins> &mapCoins,
const uint256 &hashBlock);
49 CBlockTreeDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
63 bool WriteTxIndex(
const std::vector<std::pair<uint256, CDiskTxPos> > &list);
64 bool WriteFlag(
const std::string &name,
bool fValue);
65 bool ReadFlag(
const std::string &name,
bool &fValue);
69 #endif // BITCOIN_TXDB_LEVELDB_H
bool ReadReindexing(bool &fReindex)
bool ReadLastBlockFile(int &nFile)
bool WriteBlockIndex(const CDiskBlockIndex &blockindex)
bool GetCoins(const uint256 &txid, CCoins &coins)
static const int64_t nMinDbCache
pruned version of CTransaction: only retains metadata and unspent transaction outputs ...
bool LoadBlockIndexGuts()
void operator=(const CBlockTreeDB &)
Access to the block database (blocks/index/)
Abstract view on the open txout dataset.
C++ wrapper for BIGNUM (OpenSSL bignum)
static const int64_t nDefaultDbCache
bool WriteBlockFileInfo(int nFile, const CBlockFileInfo &fileinfo)
Used to marshal pointers into hashes for db storage.
bool WriteLastBlockFile(int nFile)
bool ReadFlag(const std::string &name, bool &fValue)
CBlockTreeDB(size_t nCacheSize, bool fMemory=false, bool fWipe=false)
bool ReadBlockFileInfo(int nFile, CBlockFileInfo &fileinfo)
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos)
CCoinsViewDB(size_t nCacheSize, bool fMemory=false, bool fWipe=false)
bool BatchWrite(const std::map< uint256, CCoins > &mapCoins, const uint256 &hashBlock)
bool GetStats(CCoinsStats &stats)
bool SetBestBlock(const uint256 &hashBlock)
CCoinsView backed by the LevelDB coin database (chainstate/)
static const int64_t nMaxDbCache
bool WriteTxIndex(const std::vector< std::pair< uint256, CDiskTxPos > > &list)
bool WriteReindexing(bool fReindex)
bool HaveCoins(const uint256 &txid)
bool WriteFlag(const std::string &name, bool fValue)
bool SetCoins(const uint256 &txid, const CCoins &coins)
bool WriteBestInvalidWork(const CBigNum &bnBestInvalidWork)