Skip to content

[Bug]: Huge number of accounts generated within the wallet when utilizing development builds ('Profile sync' is ON) #27395

Open
@sleepytanya

Description

@sleepytanya

Describe the bug

Slack discussion link https://consensys.slack.com/archives/CBHSSFEN5/p1727135446963979

Big number of accounts generated within the wallet on development builds leading to a noticeable decrease in performance, rendering the wallet unusable.

"With profile sync on, the builds using develop will indeed either:
save the accounts info to the user storage if it never happened before
retrieve accounts from user storage if present, and add new accounts until we locally reach the same length as present in user storage "( thank you, Mathieu!)

Not sure this is in the scope of this ticket but this is 'broken' account https://sepolia.etherscan.io/address/0xA24B5c474dF517b083811b099054D670Ba696C7a
Last transaction created with the nonce 2102, while previous transaction nonce is 325.

Expected behavior

Screenshots/Recordings

100+ accounts - recording is redacted, the onboarding took ~ 4 mins:

hundredAccounts.mov

Same number of accounts (117) both in the UI and in the JSON response (hashedkKey):

Screen.Recording.2024-09-25.at.10.00.03.mov

Screenshot 2024-09-25 at 10 14 31

Steps to reproduce

  1. Set Settings -> Security & Privacy -> Privacy -> Profile sync ON

Error messages or log output

No response

Detection stage

On the development branch

Version

12.2.0

Build type

None

Browser

Chrome, Firefox

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Sev2-normalNormal severity; minor loss of service or inconvenience.area-performanceIssues relating to slowness of app, cpu usage, and/or blank screens.regression-RC-12.7.0regression-mainRegression bug that was found on main branch, but not yet present in productionteam-accountsteam-notificationsDEPRECATED: Use "team-assets" insteadtype-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