Bitcoin ABC 0.31.1
P2P Digital Currency
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Namespaces | Typedefs | Enumerations | Functions | Variables
blockstorage.h File Reference
#include <cstdint>
#include <unordered_map>
#include <vector>
#include <attributes.h>
#include <chain.h>
#include <chainparams.h>
#include <kernel/blockmanager_opts.h>
#include <kernel/chain.h>
#include <kernel/cs_main.h>
#include <protocol.h>
#include <sync.h>
#include <txdb.h>
#include <util/fs.h>
Include dependency graph for blockstorage.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  node::PruneLockInfo
 
struct  node::BlockfileCursor
 
class  node::BlockManager
 Maintains a tree of blocks (stored in m_block_index) which is consulted to determine where the most-work tip is. More...
 

Namespaces

namespace  Consensus
 
namespace  avalanche
 
namespace  node
 

Typedefs

using node::BlockMap = std::unordered_map< BlockHash, CBlockIndex, BlockHasher >
 

Enumerations

enum  node::BlockfileType { node::NORMAL = 0 , node::ASSUMED = 1 , node::NUM_TYPES = 2 }
 

Functions

std::ostream & node::operator<< (std::ostream &os, const BlockfileType &type)
 
std::ostream & node::operator<< (std::ostream &os, const BlockfileCursor &cursor)
 
void node::ImportBlocks (ChainstateManager &chainman, avalanche::Processor *const avalanche, std::vector< fs::path > vImportFiles)
 

Variables

static constexpr unsigned int node::BLOCKFILE_CHUNK_SIZE = 0x1000000
 The pre-allocation chunk size for blk?????.dat files (since 0.8) More...
 
static const unsigned int node::UNDOFILE_CHUNK_SIZE = 0x100000
 The pre-allocation chunk size for rev?????.dat files (since 0.8) More...
 
static const unsigned int node::MAX_BLOCKFILE_SIZE = 0x8000000
 The maximum size of a blk?????.dat file (since 0.8) More...
 
static constexpr size_t node::BLOCK_SERIALIZATION_HEADER_SIZE
 Size of header written by WriteBlockToDisk before a serialized CBlock. More...
 
std::atomic_bool node::fReindex