Skip to content

Commit

Permalink
Merge pull request #4108
Browse files Browse the repository at this point in the history
8c05237 blockchain: cache next block difficulty after adding a block (moneromooo-monero)
  • Loading branch information
luigi1111 committed Jul 27, 2018
2 parents 8eb5b0b + 8c05237 commit dda05f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cryptonote_core/blockchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3696,6 +3696,7 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&

// 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;
}
Expand Down

0 comments on commit dda05f3

Please sign in to comment.