diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-18 17:09:48 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-27 10:36:23 +0200 |
commit | fadafab83379ff10d86ada179c6f9641d19464fe (patch) | |
tree | 88dd8aafc84abf3c96e261f2a6436e0f3834300e /src/validation.h | |
parent | fa7e64d58615fffea91cd64dc4a2790221ceff0a (diff) |
move-only: Move functions to blockstorage
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/validation.h b/src/validation.h index 0e9c6ba198..b6acbc2817 100644 --- a/src/validation.h +++ b/src/validation.h @@ -135,10 +135,6 @@ extern CBlockIndex *pindexBestHeader; /** Documentation for argument 'checklevel'. */ extern const std::vector<std::string> CHECKLEVEL_DOC; -/** Open a block file (blk?????.dat) */ -FILE* OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false); -/** Translation to a filesystem path */ -fs::path GetBlockPosFilename(const FlatFilePos &pos); /** Unload database information */ void UnloadBlockIndex(CTxMemPool* mempool, ChainstateManager& chainman); /** Run instances of script checking worker threads */ @@ -165,14 +161,6 @@ bool AbortNode(BlockValidationState& state, const std::string& strMessage, const /** Guess verification progress (as a fraction between 0.0=genesis and 1.0=current tip). */ double GuessVerificationProgress(const ChainTxData& data, const CBlockIndex* pindex); -/** Calculate the amount of disk space the block & undo files currently use */ -uint64_t CalculateCurrentUsage(); - -/** - * Actually unlink the specified files - */ -void UnlinkPrunedFiles(const std::set<int>& setFilesToPrune); - /** Prune block files up to a given height */ void PruneBlockFilesManual(CChainState& active_chainstate, int nManualPruneHeight); @@ -993,9 +981,6 @@ extern VersionBitsCache versionbitscache; */ int32_t ComputeBlockVersion(const CBlockIndex* pindexPrev, const Consensus::Params& params); -/** Get block file info entry for one block file */ -CBlockFileInfo* GetBlockFileInfo(size_t n); - using FopenFn = std::function<FILE*(const fs::path&, const char*)>; /** Dump the mempool to disk. */ |