diff options
author | Thomas Winget <tewinget@gmail.com> | 2017-04-06 15:01:07 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2017-08-31 07:48:27 -0400 |
commit | 9ac2ad0744e01d7bc7d729635d21b15db5038dba (patch) | |
tree | 756fba6709053e00e2393d3fdbaa3c58ee9fb145 /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #2349 (diff) | |
download | monero-9ac2ad0744e01d7bc7d729635d21b15db5038dba.tar.xz |
DRY refactoring
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index b8ea657b4..7a138a634 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -775,6 +775,13 @@ namespace cryptonote bool 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; /** + * @brief get difficulty target based on chain and hardfork version + * + * @return difficulty target + */ + uint64_t get_difficulty_target() const; + + /** * @brief remove transactions from the transaction pool (if present) * * @param txids a list of hashes of transactions to be removed |