From 9ee30341032cdd414d6b74c9ebe97fb8daf1b320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20=F0=9F=90=86?= Date: Tue, 14 Jul 2026 18:28:34 -0400 Subject: [PATCH] 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. --- src/qt/bitcoingui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 9d3f7ad639f..a2cf0cd0fc8 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -826,6 +826,7 @@ void BitcoinGUI::setCurrentWallet(WalletModel* wallet_model) { if (!walletFrame || !m_wallet_controller) return; walletFrame->setCurrentWallet(wallet_model); + rpcConsole->setCurrentWallet(wallet_model); for (int index = 0; index < m_wallet_selector->count(); ++index) { if (m_wallet_selector->itemData(index).value() == wallet_model) { m_wallet_selector->setCurrentIndex(index);