aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-08-25 17:17:22 -0400
committerCarl Dong <contact@carldong.me>2021-01-28 14:15:26 -0500
commite0dc3057277c9576ddbfb8541599db0149e08bb6 (patch)
treedb9dabeb5a4ddf34a06fdc3134177dd0344dc8f9 /src/validation.h
parent5f8cd7b3a527999512161956db4d718688cb956f (diff)
downloadbitcoin-e0dc3057277c9576ddbfb8541599db0149e08bb6.tar.xz
validation: Move LoadExternalBlockFile to CChainState
[META] This commit should be followed up by removing the comments and assertions meant only to show that the change is correct. LoadExternalBlockFile mainly acts on CChainState.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h
index f55c0d4c31..a4c60261ee 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -144,8 +144,6 @@ extern const std::vector<std::string> CHECKLEVEL_DOC;
FILE* OpenBlockFile(const FlatFilePos &pos, bool fReadOnly = false);
/** Translation to a filesystem path */
fs::path GetBlockPosFilename(const FlatFilePos &pos);
-/** Import blocks from an external file */
-void LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFilePos* dbp = nullptr);
/** Ensures we have a genesis block in the block tree, possibly writing one to disk. */
bool LoadGenesisBlock(const CChainParams& chainparams);
/** Unload database information */
@@ -616,6 +614,9 @@ public:
bool ResizeCoinsCaches(size_t coinstip_size, size_t coinsdb_size)
EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+ /** Import blocks from an external file */
+ void LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFilePos* dbp = nullptr);
+
/**
* Update the on-disk chain state.
* The caches and indexes are flushed depending on the mode we're called with