gui: Update RPC console wallet when the active wallet changes #947

pull kwsantiago wants to merge 1 commits into bitcoin-core:master from privkeyio:gui-sync-console-wallet-selector changing 1 files +1 −0
  1. kwsantiago commented at 10:28 PM on July 14, 2026: contributor

    When multiple wallets are loaded, switching the active wallet via the main window's wallet selector doesn't update the wallet used by the RPC console. Console commands keep running against the previously selected wallet, so a wallet RPC can be sent to a different wallet than the one shown as active.

    The open/create/restore/migrate paths already call RPCConsole::setCurrentWallet(), but the main window selector was missed. Add the call to the central setCurrentWallet().

    To reproduce: load two wallets, switch the active wallet in the toolbar, then run a wallet command such as getwalletinfo in the console.

  2. gui: Update RPC console wallet when the active wallet changes
    Switching the active wallet through the main window's wallet selector did
    not update the wallet used by the RPC console, so console commands kept
    executing against the previously selected wallet.
    
    BitcoinGUI::setCurrentWallet() already updates the wallet view and window
    title; also update the RPC console so all paths that change the active
    wallet keep it in sync.
    9ee3034103
  3. DrahtBot commented at 10:29 PM on July 14, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-07-19 05:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me