aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-07-08 09:20:59 +0200
committerSebastian Kung <seb.kung@gmail.com>2023-07-11 12:00:57 +0200
commit462390c85f1174b3cf83dfb0f74922049e5cb8af (patch)
treed84272e5ee5282ddaedad67249b4804d11654578 /src/kernel
parentef29d5d7e239b42269dd22ea94a709b5e4ceb5e5 (diff)
refactor: Move stopafterblockimport handling out of blockstorage
This has the benefit of moving the StartShutdown call out of the blockstorage file and thus out of the kernel's responsibility. The user can now decide if he wants to start shutdown / interrupt after a block import or not.
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/blockmanager_opts.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/kernel/blockmanager_opts.h b/src/kernel/blockmanager_opts.h
index 0251bbb10a..deeba7e318 100644
--- a/src/kernel/blockmanager_opts.h
+++ b/src/kernel/blockmanager_opts.h
@@ -14,8 +14,6 @@ class CChainParams;
namespace kernel {
-static constexpr bool DEFAULT_STOPAFTERBLOCKIMPORT{false};
-
/**
* An options struct for `BlockManager`, more ergonomically referred to as
* `BlockManager::Options` due to the using-declaration in `BlockManager`.
@@ -24,7 +22,6 @@ struct BlockManagerOpts {
const CChainParams& chainparams;
uint64_t prune_target{0};
bool fast_prune{false};
- bool stop_after_block_import{DEFAULT_STOPAFTERBLOCKIMPORT};
const fs::path blocks_dir;
Notifications& notifications;
};