Bitcoin ABC  0.26.3
P2P Digital Currency
Classes | Namespaces | Functions | Variables
blockstorage.cpp File Reference
#include <node/blockstorage.h>
#include <blockindexcomparators.h>
#include <chain.h>
#include <chainparams.h>
#include <clientversion.h>
#include <config.h>
#include <consensus/validation.h>
#include <flatfile.h>
#include <fs.h>
#include <hash.h>
#include <pow/pow.h>
#include <reverse_iterator.h>
#include <shutdown.h>
#include <streams.h>
#include <undo.h>
#include <util/system.h>
#include <validation.h>
#include <map>
Include dependency graph for blockstorage.cpp:

Go to the source code of this file.


struct  node::CImportingNow




std::atomic_bool node::fImporting (false)
std::atomic_bool node::fReindex (false)
static FILE * node::OpenUndoFile (const FlatFilePos &pos, bool fReadOnly)
 Open an undo file (rev?????.dat) More...
static FlatFileSeq node::BlockFileSeq ()
static FlatFileSeq node::UndoFileSeq ()
const CBlockIndexnode::GetFirstStoredBlock (const CBlockIndex *start_block)
static bool node::UndoWriteToDisk (const CBlockUndo &blockundo, FlatFilePos &pos, const BlockHash &hashBlock, const CMessageHeader::MessageMagic &messageStart)
bool node::UndoReadFromDisk (CBlockUndo &blockundo, const CBlockIndex *pindex)
void node::UnlinkPrunedFiles (const std::set< int > &setFilesToPrune)
 Actually unlink the specified files. More...
FILE * node::OpenBlockFile (const FlatFilePos &pos, bool fReadOnly=false)
 Open a block file (blk?????.dat) More...
fs::path node::GetBlockPosFilename (const FlatFilePos &pos)
 Translation to a filesystem path. More...
static bool node::WriteBlockToDisk (const CBlock &block, FlatFilePos &pos, const CMessageHeader::MessageMagic &messageStart)
bool node::ReadBlockFromDisk (CBlock &block, const FlatFilePos &pos, const Consensus::Params &consensusParams)
 Functions for disk access for blocks. More...
bool node::ReadBlockFromDisk (CBlock &block, const CBlockIndex *pindex, const Consensus::Params &params)
bool node::ReadTxFromDisk (CMutableTransaction &tx, const FlatFilePos &pos)
 Functions for disk access for txs. More...
bool node::ReadTxUndoFromDisk (CTxUndo &tx_undo, const FlatFilePos &pos)
void node::ThreadImport (const Config &config, ChainstateManager &chainman, std::vector< fs::path > vImportFiles, const ArgsManager &args)


bool node::fPruneMode = false
uint64_t node::nPruneTarget = 0
const CBlockIndex *GetFirstStoredBlock(const CBlockIndex *start_block) EXCLUSIVE_LOCKS_REQUIRED(voi node::CleanupBlockRevFiles )()
 Find the first block that is not pruned. More...