lbry-sdk/lbrynet
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
..
analytics refactor conf.settings 2017-01-16 22:32:54 -05:00
core Fixes #449 2017-01-30 09:32:04 -08:00
cryptstream refactor conf.settings 2017-01-16 22:32:54 -05:00
db_migrator Remove commented code 2016-12-15 18:58:06 -06:00
dht Better dht shutdown. 2016-12-15 23:44:35 -06:00
lbryfile Refactor jsonrpc_get 2016-12-30 13:27:12 -06:00
lbryfilemanager refactor conf.settings 2017-01-16 22:32:54 -05:00
lbrylive refactor conf.settings 2017-01-16 22:32:54 -05:00
lbrynet_daemon Fixes #449 2017-01-30 09:32:04 -08:00
metadata Add scripts related to querying / downloading sd blobs 2017-01-11 12:05:34 -06:00
pointtraderclient refactor conf.settings 2017-01-16 22:32:54 -05:00
reflector fix pylint errors 2017-01-25 13:10:38 -05:00
winhelpers add bad-whitespace check to pylint 2016-11-09 11:27:07 -06:00
__init__.py Bump version: 0.8.0 → 0.8.1rc0 2017-01-25 17:49:52 -05:00
build_type.py improve error analytics 2016-11-15 10:31:35 -05:00
conf.py fix loading settings from env 2017-01-20 13:38:49 -05:00
create_network.py remove extraneous ellipses in messages 2017-01-11 15:39:28 -05:00
dht_scripts.py remove extraneous ellipses in messages 2017-01-11 15:39:28 -05:00
dhttest.py remove extraneous ellipses in messages 2017-01-11 15:39:28 -05:00
interfaces.py fixup long lines 2016-12-07 09:38:34 -05:00
node_rpc_cli.py Remove all unused imports; add check to pylint 2016-08-08 15:42:35 -05:00
rpc_node.py fixup long lines 2016-12-07 09:38:34 -05:00