Skip to content

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

@positiveblue

Description

@positiveblue

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions