forked from LBRYCommunity/lbry-sdk
ed227a239e
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:
|
||
---|---|---|
.. | ||
analytics | ||
core | ||
cryptstream | ||
db_migrator | ||
dht | ||
lbryfile | ||
lbryfilemanager | ||
lbrylive | ||
lbrynet_daemon | ||
metadata | ||
pointtraderclient | ||
reflector | ||
winhelpers | ||
__init__.py | ||
build_type.py | ||
conf.py | ||
create_network.py | ||
dht_scripts.py | ||
dhttest.py | ||
interfaces.py | ||
node_rpc_cli.py | ||
rpc_node.py |