Skip to content

[Bug]: Double Solana account creation #14850

Open
@ccharly

Description

@ccharly

Describe the bug

Solana account might be created twice.

It could be related to a race-condition given that we SHOULD NOT be able to create an account with the same addresses.

Some random thoughts about this bug:

I really wonder if we have duplicated accounts here :thinking_face: we normally check for duplicated address when adding those new accounts to the Snap keyring:

(unless both of those checks happens right after the other before we actually "add" the account to our map... that's very unlikely, but could be possible yes...)

Expected behavior

Creating a Solana account, should only create 1 account.

Screenshots/Recordings

No response

Steps to reproduce

Caution

Happens a bit randomly, needs to be investigated.

  1. Onboard
  2. Create Solana account until it creates 2 accounts at the same time with the same addresses

Error messages or log output

Detection stage

In beta

Version

7.45.0

Build type

None

Device

N/A

Operating system

Other (please elaborate in the "Additional Context" section)

Additional context

N/A

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingarea-performanceIssues relating to slowness of app, cpu usage, and/or blank screens.regression-RC-7.46.0Regression bug that was found in release candidate (RC) for release 7.46.0release-blockerThis bug is blocking the next releasesolana-betateam-accountstype-bugSomething isn't working

    Type

    No type

    Projects

    Status

    To be fixed

    Status

    To be triaged

    Status

    To be fixed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions