Skip to content

Ignore expired utxos migrated from the legacy app#681

Merged
t-bast merged 1 commit into
masterfrom
fix-blocked-swaps
Jul 8, 2024
Merged

Ignore expired utxos migrated from the legacy app#681
t-bast merged 1 commit into
masterfrom
fix-blocked-swaps

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented Jul 8, 2024

When migrating from the legacy android app, we allowed unconfirmed utxos to be able to do an instantaneous migration. But we allowed all utxos coming from the legacy app instead of only allowing unconfirmed and weakly confirmed ones. That also included swap-in-potentiam utxos that expired (for example because they were too small to be economical), which are automatically rejected by the LSP because they can be double spent.

The result is that we are unable to complete swaps if we have an expired utxo coming from a migration from the legacy application. We fix this by only whitelisting unconfirmed and weakly confirmed utxos.

Note that we will remove the migration code entirely when we merge #649.

Fixes ACINQ/phoenix#582

When migrating from the legacy android app, we allowed unconfirmed utxos
to be able to do an instantaneous migration. But we allowed *all* utxos
coming from the legacy app instead of only allowing unconfirmed and
weakly confirmed ones. That also included swap-in-potentiam utxos that
expired (for example because they were too small to be economical),
which are automatically rejected by the LSP because they can be double
spent.

The result is that we are unable to complete swaps if we have an expired
utxo coming from a migration from the legacy application. We fix this
by only whitelisting unconfirmed and weakly confirmed utxos.

Note that we will remove the migration code entirely when we merge#649.
Copy link
Copy Markdown
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Nice catch!

@t-bast t-bast merged commit bbc4898 into master Jul 8, 2024
@t-bast t-bast deleted the fix-blocked-swaps branch July 8, 2024 15:06
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.

Funds received on-chain don't swap automatically

2 participants