diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-30 16:39:33 +0100 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-31 10:03:32 +0100 |
| commit | 6cf8ca2a7f3e11ca5559018dfc9b20869c07cdce (patch) | |
| tree | 5634718d7626d234510d1f9e4c714627ff4b8590 /include | |
| parent | c3ba844f03a88bbf6b2624f719f5cb9184a07445 (diff) | |
| download | monzero-core-6cf8ca2a7f3e11ca5559018dfc9b20869c07cdce.tar.gz monzero-core-6cf8ca2a7f3e11ca5559018dfc9b20869c07cdce.tar.xz monzero-core-6cf8ca2a7f3e11ca5559018dfc9b20869c07cdce.zip | |
core: faster find_blockchain_supplement
Since this queries block heights for blocks that may or may not
exist, queries for non existing blocks would throw an exception,
and that would slow down the loop a lot. 7 seconds to go through
a 30 hash list.
Fix this by adding an optional return block height to block_exists
and using this instead. Actual errors will still throw an
exception.
This also cuts down on log exception spam.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
