aboutsummaryrefslogtreecommitdiff
path: root/src/index/coinstatsindex.h
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2022-01-24 14:34:28 +0100
committerMartin Zumsande <mzumsande@gmail.com>2022-02-21 11:37:19 -0500
commiteb6cc05da32c5bde122725a0bc907d3767a791cd (patch)
tree5a9b70c648c3c1232b2feb1e2306345106ebba34 /src/index/coinstatsindex.h
parent48a90c61e2269e6de78416001dd28bf3e12d9ebe (diff)
index: Commit DB_MUHASH and DB_BEST_BLOCK to disk together
If these are written to disk at different times, unclean shutdowns can lead to index corruption.
Diffstat (limited to 'src/index/coinstatsindex.h')
-rw-r--r--src/index/coinstatsindex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index/coinstatsindex.h b/src/index/coinstatsindex.h
index d2a6c9c964..24190ac137 100644
--- a/src/index/coinstatsindex.h
+++ b/src/index/coinstatsindex.h
@@ -39,6 +39,8 @@ private:
protected:
bool Init() override;
+ bool CommitInternal(CDBBatch& batch) override;
+
bool WriteBlock(const CBlock& block, const CBlockIndex* pindex) override;
bool Rewind(const CBlockIndex* current_tip, const CBlockIndex* new_tip) override;