Add an RPC call and daemon command to get info on hard fork voting

This commit is contained in:
moneromooo-monero
2015-09-19 16:34:29 +01:00
parent d06713199e
commit e546f3724a
13 changed files with 169 additions and 5 deletions

View File

@@ -160,6 +160,9 @@ namespace cryptonote
void set_show_time_stats(bool stats) { m_show_time_stats = stats; }
HardFork::State get_hard_fork_state() const;
uint8_t get_current_hard_fork_version() const { return m_hardfork.get_current_version(); }
uint8_t get_ideal_hard_fork_version() const { return m_hardfork.get_ideal_version(); }
bool get_hard_fork_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint8_t &voting) const;
BlockchainDB& get_db()
{