![]() |
Bitcoin ABC
0.22.13
P2P Digital Currency
|
#include <blockdb.h>
#include <blockindex.h>
#include <clientversion.h>
#include <pow/pow.h>
#include <primitives/block.h>
#include <streams.h>
#include <util/system.h>
Go to the source code of this file.
Functions | |
FlatFileSeq | BlockFileSeq () |
FlatFileSeq | UndoFileSeq () |
FILE * | OpenBlockFile (const FlatFilePos &pos, bool fReadOnly) |
Open a block file (blk?????.dat). More... | |
FILE * | OpenUndoFile (const FlatFilePos &pos, bool fReadOnly) |
Open an undo file (rev?????.dat) More... | |
fs::path | GetBlockPosFilename (const FlatFilePos &pos) |
Translation to a filesystem path. More... | |
bool | ReadBlockFromDisk (CBlock &block, const FlatFilePos &pos, const Consensus::Params ¶ms) |
Functions for disk access for blocks. More... | |
bool | ReadBlockFromDisk (CBlock &block, const CBlockIndex *pindex, const Consensus::Params ¶ms) |
Variables | |
RecursiveMutex | cs_main |
Global state. More... | |
FlatFileSeq BlockFileSeq | ( | ) |
Definition at line 12 of file blockdb.cpp.
fs::path GetBlockPosFilename | ( | const FlatFilePos & | pos | ) |
Translation to a filesystem path.
Definition at line 29 of file blockdb.cpp.
FILE* OpenBlockFile | ( | const FlatFilePos & | pos, |
bool | fReadOnly | ||
) |
Open a block file (blk?????.dat).
Definition at line 20 of file blockdb.cpp.
FILE* OpenUndoFile | ( | const FlatFilePos & | pos, |
bool | fReadOnly | ||
) |
Open an undo file (rev?????.dat)
Definition at line 25 of file blockdb.cpp.
bool ReadBlockFromDisk | ( | CBlock & | block, |
const FlatFilePos & | pos, | ||
const Consensus::Params & | params | ||
) |
Functions for disk access for blocks.
Definition at line 33 of file blockdb.cpp.
bool ReadBlockFromDisk | ( | CBlock & | block, |
const CBlockIndex * | pindex, | ||
const Consensus::Params & | params | ||
) |
FlatFileSeq UndoFileSeq | ( | ) |
Definition at line 16 of file blockdb.cpp.
RecursiveMutex cs_main |
Global state.
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
This may also need to be locked when updating the transaction pool, e.g. on AcceptToMemoryPool. See CTxMemPool::cs comment for details.
The transaction pool has a separate lock to allow reading from it and the chainstate at the same time.
Definition at line 95 of file validation.cpp.