diff options
| author | Luke Dashjr <[email protected]> | 2012-07-19 20:06:20 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-08-01 18:23:30 +0000 |
| commit | 1be064190ed0ca95113cf273082a2d81dc8a4357 (patch) | |
| tree | 037ef6896b2408ab396e336c890b9e758e64dce7 /src/init.cpp | |
| parent | Fix Qt build on OSX (diff) | |
| download | discoin-1be064190ed0ca95113cf273082a2d81dc8a4357.tar.xz discoin-1be064190ed0ca95113cf273082a2d81dc8a4357.zip | |
Optimize JSON-RPC getblockhash
- If the height is in the first half, start at the genesis block and go up, rather than at the top
- Cache the last lookup and use it as a reference point if it's close to the next request, to make linear lookups always fast
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions