diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-12-22 10:10:36 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-12-22 10:10:54 +0200 |
commit | aa7d6c5412da29ec39bb4c9aaba7e45633d27547 (patch) | |
tree | 3c85a553792605403878aa5e06067c641318a125 /src/cryptonote_core/hardfork.h | |
parent | Merge pull request #546 (diff) | |
parent | Allow the wallet to access hard fork information (diff) | |
download | monero-aa7d6c5412da29ec39bb4c9aaba7e45633d27547.tar.xz |
Merge pull request #547
8ea7af1 Allow the wallet to access hard fork information (moneromooo-monero)
760331b epee: make log macros behave like statements (moneromooo-monero)
3f2970f Add missing semicolons after log statements (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/hardfork.h')
-rw-r--r-- | src/cryptonote_core/hardfork.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cryptonote_core/hardfork.h b/src/cryptonote_core/hardfork.h index 6d2a3c55b..d2f701799 100644 --- a/src/cryptonote_core/hardfork.h +++ b/src/cryptonote_core/hardfork.h @@ -184,6 +184,11 @@ namespace cryptonote uint8_t get_current_version() const; /** + * @brief returns the earliest block a given version may activate + */ + uint64_t get_earliest_ideal_height_for_version(uint8_t version) const; + + /** * @brief returns information about current voting state * * returns true if the given version is enabled (ie, the current version @@ -193,8 +198,9 @@ namespace cryptonote * @param window the number of blocks considered in voting * @param votes number of votes for next version * @param threshold number of votes needed to switch to next version + * @param earliest_height earliest height at which the version can take effect */ - bool get_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint8_t &voting) const; + bool get_voting_info(uint8_t version, uint32_t &window, uint32_t &votes, uint32_t &threshold, uint64_t &earliest_height, uint8_t &voting) const; /** * @brief returns the size of the voting window in blocks |