Skip to content

Conversation

@guggero
Copy link
Contributor

@guggero guggero commented Feb 8, 2023

Fixes lightninglabs/lightning-terminal#470.

Pull Request Checklist

  • LndServices minimum version has been updated if new lnd apis/fields are
    used.

This commit fixes an issue where a large number of attempts at creating
an account lead to the index of the first successful account to be
higher than the previous number of keys we tried by default. This
resulted in the account not being recovered without manually overriding
this value in the command line.
This commit fixes an issue where the derivation index of an account was
greater than the default number of keys we attempted during account
recovery.
Copy link
Contributor

@positiveblue positiveblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🙏

RUN apt-get update && apt-get install -y git
ENV GOCACHE=/tmp/build/.cache
ENV GOMODCACHE=/tmp/build/.modcache
ENV GOFLAGS="-buildvcs=false"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add it to the dockerfile in the same way that is done in the other projects?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the git config --global --add safe.directory /build? (We fixed it a number of times, not sure which one actually fixes what).
To be hones, this seems clearer as it directly fixes the issue and makes it more clear that it's a Golang issue (that might be fixed in the future), rather than implying it was some sort of git problem. I can go ahead and fix it in all other repos in this manner.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixes the issue and makes it more clear that it's a Golang related issue 🥇

Do not fix it in all the other repos, I will change them and tag you in the PR 👍

Copy link
Contributor

@ffranr ffranr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@guggero guggero merged commit 9496788 into master Feb 9, 2023
@guggero guggero deleted the increase-recovery-default branch February 9, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lost access to funds after reinstallation of LiT while account was still pending after first deposit.

4 participants