aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/hardfork.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-01-16 21:40:06 +0200
committerRiccardo Spagni <ric@spagni.net>2019-01-16 21:40:06 +0200
commitdc726f4b3bbc12219ce17d4257870bd64fb8767b (patch)
tree0ca39e168e4f087c43cb6ee573ab09c502a795a3 /src/cryptonote_basic/hardfork.h
parente59813c3d7afd14689da5ef07359dfe5bad8670b (diff)
parent5ee6f03742f7c14059da6139a9923c443668f4b0 (diff)
downloadmonzero-core-dc726f4b3bbc12219ce17d4257870bd64fb8767b.tar.gz
monzero-core-dc726f4b3bbc12219ce17d4257870bd64fb8767b.tar.xz
monzero-core-dc726f4b3bbc12219ce17d4257870bd64fb8767b.zip
Merge pull request #5032
5ee6f037 blockchain: fix wrong hf version when popping multiple blocks (moneromooo-monero) 634d359a blockchain: use the version passed as parameter, not a new one (moneromooo-monero) 94a375d5 hardfork: remove batch transactions setup (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/hardfork.h')
-rw-r--r--src/cryptonote_basic/hardfork.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cryptonote_basic/hardfork.h b/src/cryptonote_basic/hardfork.h
index a63a66976..a3fc25dfa 100644
--- a/src/cryptonote_basic/hardfork.h
+++ b/src/cryptonote_basic/hardfork.h
@@ -150,6 +150,16 @@ namespace cryptonote
bool reorganize_from_chain_height(uint64_t height);
/**
+ * @brief called when one or more blocks are popped from the blockchain
+ *
+ * The current fork will be updated by looking up the db,
+ * which is much cheaper than recomputing everything
+ *
+ * @param new_chain_height the height of the chain after popping
+ */
+ void on_block_popped(uint64_t new_chain_height);
+
+ /**
* @brief returns current state at the given time
*
* Based on the approximate time of the last known hard fork,