aboutsummaryrefslogtreecommitdiff
path: root/src/index/base.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-28 14:01:37 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-12 10:47:35 +0200
commitfaad68fcd440e77e61a5a1560471417dd984e390 (patch)
tree0e6783601ce151ae81ff78ae7fe2a32768862d9e /src/index/base.h
parent2e30e328a7a46e0405664fd0cb31d971171f71d1 (diff)
downloadbitcoin-faad68fcd440e77e61a5a1560471417dd984e390.tar.xz
index: Avoid async shutdown on init error
Diffstat (limited to 'src/index/base.h')
-rw-r--r--src/index/base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index/base.h b/src/index/base.h
index d887620524..59eefab29e 100644
--- a/src/index/base.h
+++ b/src/index/base.h
@@ -84,7 +84,7 @@ protected:
const CBlockIndex* CurrentIndex() { return m_best_block_index.load(); };
/// Initialize internal state from the database and block index.
- virtual bool Init();
+ [[nodiscard]] virtual bool Init();
/// Write update index entries for a newly connected block.
virtual bool WriteBlock(const CBlock& block, const CBlockIndex* pindex) { return true; }
@@ -117,7 +117,7 @@ public:
/// Start initializes the sync state and registers the instance as a
/// ValidationInterface so that it stays in sync with blockchain updates.
- void Start();
+ [[nodiscard]] bool Start();
/// Stops the instance from staying in sync with blockchain updates.
void Stop();