aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-09-15 16:23:56 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-09-15 16:23:56 -0500
commit0be63cffa80a66a2b76c77025b2637edb47ac571 (patch)
tree75db44fd75f9a7e037ed2325c91e5f0087258991 /src/cryptonote_core
parentaf4f97bf66282bb2af25b5577d9bcba4d00b00b0 (diff)
parent864a78ee5f5db4619c093e0dfb26bd03735d9fb1 (diff)
downloadmonzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.tar.gz
monzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.tar.xz
monzero-core-0be63cffa80a66a2b76c77025b2637edb47ac571.zip
Merge pull request #8544
864a78e wallet2: check wallet compatibility with daemon's hard fork version (j-berman)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/blockchain.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index 355d0de1a..4795fc55c 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -900,6 +900,13 @@ namespace cryptonote
uint64_t get_earliest_ideal_height_for_version(uint8_t version) const { return m_hardfork->get_earliest_ideal_height_for_version(version); }
/**
+ * @brief returns info for all known hard forks
+ *
+ * @return the hardforks
+ */
+ const std::vector<hardfork_t>& get_hardforks() const { return m_hardfork->get_hardforks(); }
+
+ /**
* @brief get information about hardfork voting for a version
*
* @param version the version in question