aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 10:33:22 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 10:34:29 +0000
commit07dd55363ccef397ce161f6744dfca25e558e290 (patch)
treea10c02223625ef50bc9631458c1b41cd2999ea13 /src
parentMerge pull request #5423 (diff)
downloadmonero-07dd55363ccef397ce161f6744dfca25e558e290.tar.xz
hardfork: remove "no hf version db" recreation check
This is now obsolete, and this removes the warning on startup on a new db that confuses some people
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_basic/hardfork.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/cryptonote_basic/hardfork.cpp b/src/cryptonote_basic/hardfork.cpp
index 89bca2f09..1c73102d6 100644
--- a/src/cryptonote_basic/hardfork.cpp
+++ b/src/cryptonote_basic/hardfork.cpp
@@ -185,26 +185,8 @@ void HardFork::init()
else
height = 1;
- bool populate = false;
- try
- {
- db.get_hard_fork_version(0);
- }
- catch (...) { populate = true; }
- if (populate) {
- MINFO("The DB has no hard fork info, reparsing from start");
- height = 1;
- }
- MDEBUG("reorganizing from " << height);
- if (populate) {
- reorganize_from_chain_height(height);
- // reorg will not touch the genesis block, use this as a flag for populating done
- db.set_hard_fork_version(0, original_version);
- }
- else {
- rescan_from_chain_height(height);
- }
- MDEBUG("reorganization done");
+ rescan_from_chain_height(height);
+ MDEBUG("init done");
}
uint8_t HardFork::get_block_version(uint64_t height) const