aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-02 19:17:00 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-04-04 18:07:24 +0200
commitfa413f07a14744e7d7f7746e861aabd9cf938f61 (patch)
tree9dcc034c59e07dbf0ccfec1699583f57d1dcd223 /src/node/blockstorage.h
parentfaf843c07f99f91603e08ea858f972516f1d669a (diff)
downloadbitcoin-fa413f07a14744e7d7f7746e861aabd9cf938f61.tar.xz
move-only: Move ThreadImport to blockstorage
Can be reviewed with the git options --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h
new file mode 100644
index 0000000000..d81b39f9f9
--- /dev/null
+++ b/src/node/blockstorage.h
@@ -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