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 /src/simplewallet/simplewallet.cpp | |
| parent | 5710edf0401aa5804430bfb10b119aaa3db9873d (diff) | |
| download | monzero-core-a6a54fa883996b1bfb33e737b979add1a143324c.tar.gz monzero-core-a6a54fa883996b1bfb33e737b979add1a143324c.tar.xz monzero-core-a6a54fa883996b1bfb33e737b979add1a143324c.zip | |
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 'src/simplewallet/simplewallet.cpp')
0 files changed, 0 insertions, 0 deletions
