mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 17:28:52 +00:00
Merge pull request #5443
07dd5536
hardfork: remove "no hf version db" recreation check (moneromooo-monero)
This commit is contained in:
commit
c5f64bf170
@ -185,26 +185,8 @@ void HardFork::init()
|
|||||||
else
|
else
|
||||||
height = 1;
|
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);
|
rescan_from_chain_height(height);
|
||||||
}
|
MDEBUG("init done");
|
||||||
MDEBUG("reorganization done");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t HardFork::get_block_version(uint64_t height) const
|
uint8_t HardFork::get_block_version(uint64_t height) const
|
||||||
|
Loading…
Reference in New Issue
Block a user