diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-16 19:38:44 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-17 00:11:06 +0100 |
commit | 439c4555e99bbd1869fc6a7a96d7a5cb4a72c028 (patch) | |
tree | 7d2e3415ef893e739c5d3373bc70f5561fdd4fa7 /src/cryptonote_core/hardfork.h | |
parent | Merge pull request #432 (diff) | |
download | monero-439c4555e99bbd1869fc6a7a96d7a5cb4a72c028.tar.xz |
hardfork: simplify work done on reload
There is no need to fully recalculate and rewrite state, just
refill state from the DB.
Diffstat (limited to 'src/cryptonote_core/hardfork.h')
-rw-r--r-- | src/cryptonote_core/hardfork.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/hardfork.h b/src/cryptonote_core/hardfork.h index 6b98b9fa1..4b2c20258 100644 --- a/src/cryptonote_core/hardfork.h +++ b/src/cryptonote_core/hardfork.h @@ -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; |