diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-10 10:10:04 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-10 11:12:56 +0100 |
commit | a1891ebea961889c2e1d1a918d84495b31ec121f (patch) | |
tree | 861119558caa3a4598e2f55850facbea75ab8625 /src/cryptonote_core/cryptonote_core.h | |
parent | Merge pull request #2271 (diff) | |
download | monero-a1891ebea961889c2e1d1a918d84495b31ec121f.tar.xz |
tests: fix tests build
Add get_fork_version and add_ideal_fork_version to core so
cryptonote_protocol does not have to need the Blockchain
class directly, as it's not in its dependencies, and add
those to the fake core classes in tests too.
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.h')
-rw-r--r-- | src/cryptonote_core/cryptonote_core.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_core.h b/src/cryptonote_core/cryptonote_core.h index 171c3cb98..63d3cd16d 100644 --- a/src/cryptonote_core/cryptonote_core.h +++ b/src/cryptonote_core/cryptonote_core.h @@ -621,6 +621,20 @@ namespace cryptonote uint64_t get_target_blockchain_height() const; /** + * @brief return the ideal hard fork version for a given block height + * + * @return what it says above + */ + uint8_t get_ideal_hard_fork_version(uint64_t height) const; + + /** + * @brief return the hard fork version for a given block height + * + * @return what it says above + */ + uint8_t get_hard_fork_version(uint64_t height) const; + + /** * @brief gets start_time * */ |