aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-17 10:15:33 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-19 09:05:40 +0000
commita6a54fa883996b1bfb33e737b979add1a143324c (patch)
treee29d5fc04bf6cffd793848bdaa34fa4605f06dfa /external
parentMerge pull request #3429 (diff)
downloadmonero-a6a54fa883996b1bfb33e737b979add1a143324c.tar.xz
blockchain: cache difficulty for next block
Takes about 10 ms, which takes pretty much all of the get_info RPC, which is called pretty often from wallets. Also add a new lock so we don't need to lock the blockchain lock, which will avoid blocking for a long time when calling the getinfo RPC while syncing. Users of get_difficulty_for_next_block who need the lock will have locked it already.
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions