lbryio / lbry-sdk

The LBRY SDK for building decentralized, censorship resistant, monetized, digital content apps.
https://lbry.com
MIT License
7.19k stars 483 forks source link

max address gap not set properly #3230

Open tzarebczan opened 3 years ago

tzarebczan commented 3 years ago

There are old wallets that don't set the gap properly and won't sync the right data. I have some examples when this issue is ready to be worked on:

on initial sync:

2020-11-19 00:04:38,978 INFO     lbry.wallet.ledger:1073: Loaded account bbqEnWGbfw3jyw1tu5YHaT9hHZcCGS9bLt with 0.001296 LBC, 43 receiving addresses (gap: 22), 17 change addresses (gap: 6), 0 channels, 0 certificates and 0 claims.

after fixing gaps:


2020-11-19 00:07:08,587 INFO     lbry.wallet.ledger:1073: Loaded account bbqEnWGbfw3jyw1tu5YHaT9hHZcCGS9bLt with 1.42428807 LBC, 342 receiving addresses (gap: 33), 110 change addresses (gap: 6), 0 channels, 0 certificates and 0 claims.
warmachinesocial commented 3 years ago

@tzarebczan I'm new to this project, would like to ask you what do you mean by "gap" in the address