lbry-sdk/lbrynet/lbrynet_daemon
jobevers ed227a239e Fixes #449
What was happening was the wallet claimed to be caught up before it
actually was and so the wallet’s local_height was still the value from
when lbry was last run, frequently more than 20 or 50 blocks
behind. _get_value_for_name uses the block at local_height as the
basis for the proof.  If _get_value_for_name is called during that
time between when the wallet claims to be caught up and it actually
is, the “Block too deep error” happens.  And since the discover page
of the UI does name resolution right away, the error basically happens
anytime somebody starts the app after not using it for a few hours.

This changes the startup behaviour of the wallet to
- use the `update` callback provided by lbryum
- check that local_height and network_height match before declaring
  that the wallet has caught up

For reference, the error is raised here:
1b896ae75b/src/rpc/claimtrie.cpp (L688)
2017-01-30 09:32:04 -08:00
..
auth fix missing id_ parameter to _render_error 2017-01-17 20:01:28 -06:00
daemon_scripts pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
__init__.py don't mess with logging 2016-06-07 04:19:51 -04:00
Daemon.py Fixes #449 2017-01-30 09:32:04 -08:00
DaemonCLI.py refactor conf.settings 2017-01-16 22:32:54 -05:00
DaemonControl.py updates, more refactoring for greater clarity 2017-01-17 12:29:09 -05:00
DaemonRequest.py Remove commented code 2016-12-15 18:58:06 -06:00
DaemonServer.py refactor conf.settings 2017-01-16 22:32:54 -05:00
Downloader.py Merge pull request #445 from lbryio/retry-get 2017-01-27 10:08:25 -06:00
ExchangeRateManager.py refactor conf.settings 2017-01-16 22:32:54 -05:00
FileStreamer.py fixup long lines 2016-12-07 09:38:34 -05:00
Publisher.py refactor conf.settings 2017-01-16 22:32:54 -05:00
Resources.py fix resource needed for watch 2017-01-17 19:26:09 -06:00
UIManager.py refactor conf.settings 2017-01-16 22:32:54 -05:00