Skip to content

When opening or autoloading wallets there should be clear messages about rescanning in progress and wallets' names. #259

Open

Description

@streamofstars

There are at least two ways to open a wallet.

  1. File, Open wallet
  2. or by manually appending settings.json file with wallet name.

When opening a wallet that has not been synchronized recently, in the first case there is a small window displayed with a message "opening wallet ". The node is rescanning at this time but nothing really indicates that, so unless user peeks in the debug.log file they may think bitcoin core is stuck.

Screenshot 2021-03-24 at 18 21 13

In the second scenario, the initial window displays a message with just a single word "rescanning". This is better in a way that at least, as a user I am not confused about what is actually happening. However, there is a different problem: no indication about which wallet is being loaded. If a user has multiple wallets and don't keep them all opened all the time, but opens one, closes another and so on, upon (re)starting Bitcoin-qt they would not know for which wallet rescanning is happening.

Screenshot 2021-03-25 at 01 13 54

In my opinion, both windows should clearly state:

  • what is going on right now exactly, i.e. rescanning
  • names of wallets that are being loaded

Activity

  1. hebasto commented on Mar 31, 2021

    @hebasto
    Member

    Adding a named wallet to the string presented to the user should be a one-line change.

    FIX:
    Explicitly enumerate all cases and be sure to not add the wallet name in one window and not leave others unnamed.
    E.g., "Sending/Receiveing addresses" windows.

    Additionally, adding a comment to mention when not naming is required would be appreciated.

  2. streamofstars commented on Mar 31, 2021

    @streamofstars
    Author

    Keep in mind that there is also a case to cover in my second scenario where a json file is configured to load multiple wallets and more than one require rescanning. However, I am not familiar with how the rescan feature works under the hood specifically. Whether it rescans for each wallet one by one or rescans for all loaded wallets at once. If the latter is the case, is it really feasible to list all those wallets there? Two or three is fine but what if someone has dozens of them? (unless there is a limit to the number of wallets)

  3. hebasto commented on Mar 31, 2021

    @hebasto
    Member

    Whether it rescans for each wallet one by one or rescans for all loaded wallets at once

    IIRC, the former one.

  4. added
    UX
    and removed on May 1, 2021
  5. hebasto commented on Nov 6, 2021

    @hebasto
    Member

    @khan201kp

    What do you mean by wallet name?

    A Wallet::getWalletName() return value:

    //! Get wallet name.
    virtual std::string getWalletName() = 0;

  6. AdarshRawat1 commented on Mar 17, 2023

    @AdarshRawat1

    can I work on this issue?

  7. hebasto commented on Mar 17, 2023

    @hebasto
    Member

    @AdarshRawat1

    can I work on this issue?

    This project is permissionless.

    Feel free to open a PR :)

  8. added a commit that references this issue on Jan 10, 2024
  9. Jaysinh146 commented on Feb 5, 2025

    @Jaysinh146

    Hey, I would love to work on this issue. Can I take it?

  10. hebasto commented on Feb 5, 2025

    @hebasto
    Member

    @Jaysinh146

    Hey, I would love to work on this issue. Can I take it?

    This project is permissionless.

    Feel free to open a PR :)

    You might also consider the previous attempt in #786.

  11. Jaysinh146 commented on Feb 5, 2025

    @Jaysinh146

    Okay. Thank you

  12. ShauryaaSharma commented on Jun 15, 2026

    @ShauryaaSharma

    I've opened a PR that addresses this: #939

    The fix adds the wallet display name to the three initMessage calls in wallet.cpp so the splash screen consistently shows [wallet_name] Rescanning… (matching the format already used by ShowProgress inside ScanForWalletTransactions). For the unnamed default wallet, DisplayName() falls back to "default wallet".

    LoadWalletsActivity::load() intentionally omits a wallet name since it loads multiple wallets simultaneously, a comment is added there explaining this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions