8 #ifndef BITCOIN_TXDB_LEVELDB_H
9 #define BITCOIN_TXDB_LEVELDB_H
20 CCoinsViewDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
35 CBlockTreeDB(
size_t nCacheSize,
bool fMemory =
false,
bool fWipe =
false);
50 bool WriteTxIndex(
const std::vector<std::pair<uint256, CDiskTxPos> > &list);
52 bool ReadFlag(
const std::string &name,
bool &fValue);
62 #endif // BITCOIN_TXDB_LEVELDB_H
bool SetBestBlock(CBlockIndex *pindex)
bool BatchWrite(const std::map< uint256, CCoins > &mapCoins, CBlockIndex *pindex)
bool ReadCheckpointPubKey(std::string &strPubKey)
bool WriteSyncCheckpoint(uint256 hashCheckpoint)
bool ReadReindexing(bool &fReindex)
bool ReadLastBlockFile(int &nFile)
bool WriteBlockIndex(const CDiskBlockIndex &blockindex)
bool GetCoins(const uint256 &txid, CCoins &coins)
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.
bool ReadBestInvalidWork(CBigNum &bnBestInvalidWork)
C++ wrapper for BIGNUM (OpenSSL bignum)
bool WriteBlockFileInfo(int nFile, const CBlockFileInfo &fileinfo)
Used to marshal pointers into hashes for db storage.
bool ReadSyncCheckpoint(uint256 &hashCheckpoint)
bool WriteLastBlockFile(int nFile)
CBlockIndex * GetBestBlock()
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 GetStats(CCoinsStats &stats)
The block chain is a tree shaped structure starting with the genesis block at the root...
CCoinsView backed by the LevelDB coin database (chainstate/)
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 WriteCheckpointPubKey(const std::string &strPubKey)
bool SetCoins(const uint256 &txid, const CCoins &coins)
bool WriteBestInvalidWork(const CBigNum &bnBestInvalidWork)