When the wallet finishes loading you will see only one coin instead of two.
This is because when recovering a wallet Wasabi uses the minimum gap limit in order to stop looking for addresses if there are that many unused addresses, but it doesn't take into consideration that the unused addresses should be consecutive.
Yes, that's true and you are right. Would you like to take this one? I think you should check that the number of consecutive keys are filled. Try with something like this:
```c#
// KeyManager.cs file
var keys = GetKeys(KeyState.Clean, true);
var consecutives = keys.Skip(1).Zip(keys, (curr, prev) => curr.Index == prev.Index + 1).Count(x=>x);
while (consecutives < MinGapLimit)
{
// generate one more
}
```
Yes, good catch!
Would you like to take this one?
Yes I will try.
Sorry @yahiheb, I did some progress with this issue because i think it is rather important. Please, review my PR and repeat your test with it. If you find a better solution just push it on top.
Most helpful comment
Sorry @yahiheb, I did some progress with this issue because i think it is rather important. Please, review my PR and repeat your test with it. If you find a better solution just push it on top.