aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/hardfork.h
diff options
context:
space:
mode:
authorj-berman <justinberman@protonmail.com>2022-08-26 16:13:19 -0700
committerj-berman <justinberman@protonmail.com>2022-09-12 21:24:24 -0600
commitb8271ab88154730149d54a31b2b165f210ac5b47 (patch)
tree46749b58928bbaa2b4405a3ac47cfa85f0768ddc /src/cryptonote_basic/hardfork.h
parentMerge pull request #8554 (diff)
downloadmonero-b8271ab88154730149d54a31b2b165f210ac5b47.tar.xz
wallet2: check wallet compatibility with daemon's hard fork version
Diffstat (limited to '')
-rw-r--r--src/cryptonote_basic/hardfork.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_basic/hardfork.h b/src/cryptonote_basic/hardfork.h
index 32f669c71..f43710f4f 100644
--- a/src/cryptonote_basic/hardfork.h
+++ b/src/cryptonote_basic/hardfork.h
@@ -231,6 +231,11 @@ namespace cryptonote
*/
uint64_t get_window_size() const { return window_size; }
+ /**
+ * @brief returns info for all known hard forks
+ */
+ const std::vector<hardfork_t>& get_hardforks() const { return heights; }
+
private:
uint8_t get_block_version(uint64_t height) const;