Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Account is left in Pending Update state after spendAccount fails to broadcast the new tx #438

Open
positiveblue opened this issue Feb 16, 2023 · 0 comments

Comments

@positiveblue
Copy link
Contributor

Description

A user deposits new funds in his account calling the DepositAccount rpc method. A new AccountDiff is created and stored (client and server side).

The tx was never broadcasted to the network. The lnd node does not see it in pending txs and the lnd inputs are released. The account diff is not applied to the account because is waiting for confirmations.

Expected behavior

In the spendAccount we should rollback the account update if the broadcast fails which releases the funds in LND.

Actual behavior

The account becomes unusable because of its Pending Updating state.

Workaround

Delete the account diff from the server and make the user go through the recovery account process so it gets in sync with the server with the last state of this account before it became unusable.

Bug spotted in the wild

@positiveblue positiveblue changed the title [bug] Account is left in Pending Update state after a spendAccount fails to broadcast the new tx [bug] Account is left in Pending Update state after spendAccount fails to broadcast the new tx Feb 16, 2023
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

No branches or pull requests

1 participant