aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/berkeleydb/db_bdb.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-09-20 18:41:38 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-09-20 18:42:52 +0100
commit5b11a89a76cf44c0fb98d98b05eb1c9e4ddce0c4 (patch)
tree8f6b2d879f7e8b5c224a4592373bd37afc2a9957 /src/blockchain_db/berkeleydb/db_bdb.h
parenthardfork: remove the "parts are copyright cryptonote" notices (diff)
downloadmonero-5b11a89a76cf44c0fb98d98b05eb1c9e4ddce0c4.tar.xz
hardfork: most state now saved to the DB
There will be a delay on first load of an existing blockchain as it gets reparsed for this state data.
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h
index f92bbef68..54edcf0ad 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.h
+++ b/src/blockchain_db/berkeleydb/db_bdb.h
@@ -374,6 +374,13 @@ private:
virtual void remove_spent_key(const crypto::key_image& k_image);
void get_output_global_indices(const uint64_t& amount, const std::vector<uint64_t> &offsets, std::vector<uint64_t> &global_indices);
+
+ // Hard fork related storage
+ virtual void set_hard_fork_starting_height(uint8_t version, uint64_t height);
+ virtual uint64_t get_hard_fork_starting_height(uint8_t version) const;
+ virtual void set_hard_fork_version(uint64_t height, uint8_t version);
+ virtual uint8_t get_hard_fork_version(uint64_t height) const;
+
/**
* @brief convert a tx output to a blob for storage
*
@@ -430,6 +437,9 @@ private:
Db* m_spent_keys;
+ Db* m_hf_starting_heights;
+ Db* m_hf_versions;
+
uint64_t m_height;
uint64_t m_num_outputs;
std::string m_folder;