move-only: Move ThreadImport to blockstorage

Can be reviewed with the git options
--color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
This commit is contained in:
MarcoFalke
2021-04-02 19:17:00 +02:00
parent faf843c07f
commit fa413f07a1
4 changed files with 118 additions and 88 deletions

19
src/node/blockstorage.h Normal file
View File

@@ -0,0 +1,19 @@
// Copyright (c) 2011-2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_NODE_BLOCKSTORAGE_H
#define BITCOIN_NODE_BLOCKSTORAGE_H
#include <vector>
#include <fs.h>
class ArgsManager;
class ChainstateManager;
static constexpr bool DEFAULT_STOPAFTERBLOCKIMPORT{false};
void ThreadImport(ChainstateManager& chainman, std::vector<fs::path> vImportFiles, const ArgsManager& args);
#endif // BITCOIN_NODE_BLOCKSTORAGE_H