aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-27 14:26:01 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-27 14:26:01 -0500
commitdda05f357a3eed6426d4a78e59a2e88652d30537 (patch)
tree1be78bacd70d04b8e763d0f66d747a84d9e941be /src
parentMerge pull request #4098 (diff)
parentblockchain: cache next block difficulty after adding a block (diff)
downloadmonero-dda05f357a3eed6426d4a78e59a2e88652d30537.tar.xz
Merge pull request #4108
8c05237 blockchain: cache next block difficulty after adding a block (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 6e35744e6..dad30906e 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -3696,6 +3696,7 @@ leave:
// appears to be a NOP *and* is called elsewhere. wat?
m_tx_pool.on_blockchain_inc(new_height, id);
+ get_difficulty_for_next_block(); // just to cache it
return true;
}