aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/berkeleydb
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-01-15 14:00:58 +0000
committerHoward Chu <hyc@symas.com>2016-01-15 17:26:19 +0000
commit30f92f5630bbc7507708275a29a9ae7acf633a5b (patch)
tree56cd61f113b9bed7eeef4b84729cb4cab356fc80 /src/blockchain_db/berkeleydb
parentMerge pull request #612 (diff)
downloadmonero-30f92f5630bbc7507708275a29a9ae7acf633a5b.tar.xz
Fix hf when import with verify off
Delete the hf tables, so the next open will rescan and regenerate
Diffstat (limited to 'src/blockchain_db/berkeleydb')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.cpp5
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index d41784bac..1ccb6be12 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -2150,6 +2150,11 @@ uint64_t BlockchainBDB::get_hard_fork_starting_height(uint8_t version) const
return result;
}
+void BlockchainBDB::check_hard_fork_info()
+{
+ /* FIXME: Some other time */
+}
+
void BlockchainBDB::set_hard_fork_version(uint64_t height, uint8_t version)
{
LOG_PRINT_L3("BlockchainBDB::" << __func__);
diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h
index 7df6e9271..8cac94f6f 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.h
+++ b/src/blockchain_db/berkeleydb/db_bdb.h
@@ -375,6 +375,7 @@ private:
virtual uint64_t get_hard_fork_starting_height(uint8_t version) const;
virtual void set_hard_fork_version(uint64_t height, uint8_t version);
virtual uint8_t get_hard_fork_version(uint64_t height) const;
+ virtual void check_hard_fork_info();
/**
* @brief convert a tx output to a blob for storage