From 8ea7af1ba3ea74be52893a38ab9c7d5afdc90926 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 19 Dec 2015 14:52:30 +0000 Subject: Allow the wallet to access hard fork information And make it change behavior slightly when close/after first hard fork --- src/cryptonote_core/blockchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cryptonote_core/blockchain.cpp') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 55571f57b..badccd06f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3173,9 +3173,9 @@ HardFork::State Blockchain::get_hard_fork_state() const return m_hardfork->get_state(); } -bool Blockchain::get_hard_fork_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint8_t &voting) const +bool Blockchain::get_hard_fork_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint64_t &earliest_height, uint8_t &voting) const { - return m_hardfork->get_voting_info(version, window, votes, threshold, voting); + return m_hardfork->get_voting_info(version, window, votes, threshold, earliest_height, voting); } bool Blockchain::for_all_key_images(std::function f) const -- cgit v1.2.3