diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-05-29 12:55:19 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-05-29 12:55:19 -0500 |
commit | 764340d112ff807ae73e72974fed1ddb5ab9cc39 (patch) | |
tree | 3bef0d633e14ec7f5eaf30acfd3c78e4051b2c0d /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #3405 (diff) | |
parent | blockchain: cache difficulty for next block (diff) | |
download | monero-764340d112ff807ae73e72974fed1ddb5ab9cc39.tar.xz |
Merge pull request #3420
a6a54fa blockchain: cache difficulty for next block (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h index f58885812..6134418af 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -1008,6 +1008,10 @@ namespace cryptonote std::vector<difficulty_type> m_difficulties; uint64_t m_timestamps_and_difficulties_height; + epee::critical_section m_difficulty_lock; + crypto::hash m_difficulty_for_next_block_top_hash; + difficulty_type m_difficulty_for_next_block; + boost::asio::io_service m_async_service; boost::thread_group m_async_pool; std::unique_ptr<boost::asio::io_service::work> m_async_work_idle; |