Skip to content

[Bug]: Error: Unable to align accounts with provider "Bitcoin" #23324

@ccharly

Description

@ccharly

Describe the bug

Same variant as this bug on extension:

When onboarding with an SRP that have a lot of accounts synced with Backup & Sync, the Bitcoin Snap usually fails to "align" its accounts and fails with an error at some point.

The main reason being that the Snap keyring account creations is not idempotent and the Bitcoin Snap has been designed to use this behavior.

The Snap keyring needs to be updated to support this, thus, avoiding having the Bitcoin Snap to fail during alignments.

Snap keyring fix can be found here:

Expected behavior

The Bitcoin Snap should be able to align accounts with no error.

Screenshots/Recordings

No response

Steps to reproduce

Note

Might not happen frequently because of "timings", but we got this pretty consistently on extension

  1. Onboard with a new SRP
  2. Creates at least 50 accounts for that SRP
  • Make sure to have "Backup & Sync" enabled!
  1. Uninstall
  2. Re-install
  3. Onboard with the same SRP + Inspect your console logs

Error messages or log output

Error: Unable to align accounts with provider "Bitcoin"

- - -

(from the Bitcoin Snap logs): An unexpected error occurred

Detection stage

During release testing

Version

7.60.0

Build number

3157

Build type

None

Device

iOS simulator

Operating system

iOS

Additional context

No response

Severity

  • Users with a lot of accounts might see those errors during onboarding
  • Those errors are generally reported to Sentry (which adds a lot of noise)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageIssue needs to be triagedregression-RC-7.60.0Regression bug that was found in release candidate (RC) for release 7.60.0type-bugSomething isn't working

    Type

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions