diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-17 10:15:33 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-03-19 09:05:40 +0000 |
commit | a6a54fa883996b1bfb33e737b979add1a143324c (patch) | |
tree | e29d5fc04bf6cffd793848bdaa34fa4605f06dfa /external | |
parent | Merge pull request #3429 (diff) | |
download | monero-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