hardfork: simplify work done on reload

There is no need to fully recalculate and rewrite state, just
refill state from the DB.
This commit is contained in:
moneromooo-monero
2015-10-16 19:38:44 +01:00
parent e6d2460263
commit 439c4555e9
2 changed files with 40 additions and 1 deletions

View File

@@ -189,6 +189,9 @@ namespace cryptonote
uint8_t get_effective_version(uint8_t version) const;
bool add(uint8_t block_version, uint64_t height);
bool rescan_from_block_height(uint64_t height);
bool rescan_from_chain_height(uint64_t height);
private:
BlockchainDB &db;