Changeset View
Changeset View
Standalone View
Standalone View
src/blockdb.h
Show All 27 Lines | |||||
*/ | */ | ||||
fs::path GetBlockPosFilename(const FlatFilePos &pos); | fs::path GetBlockPosFilename(const FlatFilePos &pos); | ||||
/** | /** | ||||
* Open a block file (blk?????.dat). | * Open a block file (blk?????.dat). | ||||
*/ | */ | ||||
FILE *OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false); | FILE *OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false); | ||||
/** Functions for disk access for blocks */ | |||||
bool ReadBlockFromDisk(CBlock &block, const FlatFilePos &pos, | |||||
const Consensus::Params ¶ms); | |||||
bool ReadBlockFromDisk(CBlock &block, const CBlockIndex *pindex, | |||||
const Consensus::Params ¶ms); | |||||
#endif // BITCOIN_BLOCKDB_H | #endif // BITCOIN_BLOCKDB_H |