lbry-sdk/lbrynet/core
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
..
client removing str() from logging functions 2017-01-26 12:14:33 -05:00
server add debug log to hash announcing 2017-01-21 22:48:16 -06:00
__init__.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
BlobAvailability.py BlobAvailabilityTracker.sample bug, remove whitespace 2016-12-17 20:05:27 -05:00
BlobInfo.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
BlobManager.py get_blob bug fix 2017-01-20 17:41:08 -06:00
cryptoutils.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
DownloadOption.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
Error.py remove authjsonrpc subhandlers. we dont use them 2017-01-11 15:39:28 -05:00
file_utils.py Fix pylint errors 2017-01-20 22:36:31 -05:00
HashAnnouncer.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
HashBlob.py Bug fix: delete empty blobs 2017-01-21 17:27:19 -06:00
log_support.py disable verbose twisted logs 2017-01-25 13:04:02 -05:00
looping_call_manager.py replace some strings 2016-10-20 11:30:38 -07:00
Offer.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
PaymentRateManager.py refactor conf.settings 2017-01-16 22:32:54 -05:00
Peer.py clean up 2016-10-13 13:35:55 -04:00
PeerFinder.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
PeerManager.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
PriceModel.py refactor conf.settings 2017-01-16 22:32:54 -05:00
PTCWallet.py fixup long lines 2016-12-07 09:38:34 -05:00
RateLimiter.py fixup long lines 2016-12-07 09:38:34 -05:00
Session.py Stop eating wallet connection error 2016-12-30 22:34:08 -06:00
sqlite_helpers.py pylint: add check for missing-final-newline 2016-12-14 19:21:59 -06:00
Strategy.py refactor conf.settings 2017-01-16 22:32:54 -05:00
StreamCreator.py cleanup whitespace and long-lines 2016-11-04 11:44:50 -05:00
StreamDescriptor.py fixup long lines 2016-12-07 09:38:34 -05:00
system_info.py rename platform to system_info 2016-12-15 18:58:16 -06:00
utils.py send bug reports to slack 2017-01-02 14:52:24 -05:00
Wallet.py Fixes #449 2017-01-30 09:32:04 -08:00