aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/blockchain_db/lmdb')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp6
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 9acb63364..de8066123 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -2596,4 +2596,10 @@ uint8_t BlockchainLMDB::get_hard_fork_version(uint64_t height) const
return *(const uint8_t*)val_ret.mv_data;
}
+void BlockchainLMDB::fixup()
+{
+ // Always call parent as well
+ BlockchainDB::fixup();
+}
+
} // namespace cryptonote
diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h
index 98546620b..9e45e26cc 100644
--- a/src/blockchain_db/lmdb/db_lmdb.h
+++ b/src/blockchain_db/lmdb/db_lmdb.h
@@ -266,6 +266,9 @@ private:
void check_open() const;
+ // fix up anything that may be wrong due to past bugs
+ virtual void fixup();
+
MDB_env* m_env;
MDB_dbi m_blocks;