You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
qt: unloading a wallet during a fee bump or Send preparation still joins the worker on the GUI thread (#326 follow-up) #356
#344 fixes #326 for PSBT signing: unloading a wallet during signing no longer discards the signed PSBT. Two other cases that #326 describes remain:
Unloading during a fee bump's progress dialog makes ~WalletModel join the bump worker on the GUI thread (finishBumpFeeThread) for the rest of the signing and commit, with no progress UI.
Unloading during Send preparation makes ~SendCoinsDialog join the prepare worker. This already happened in v1.0.0.
Observed
WalletController defers an unload only while the active modal widget is not a QProgressDialog (src/qt/walletcontroller.cpp:205-214). The upstream exemption was meant for wallet-activity progress, but the fee-bump and send-prepare progress dialogs are also QProgressDialogs.
Low. An unloadwallet call, or closing the wallet, at the wrong moment freezes qbit-qt for the rest of the signing, which takes seconds per P2MR input, and shows no feedback. The fee bump still commits, and its PQC counters are consumed.
Suggested fix
Either narrow the QProgressDialog exemption so it no longer covers qbit's worker progress dialogs, deferring the unload until the worker reports, or cancel or detach these workers on unload as #344 does for PSBT signing. Add a test at the WalletController level.
Activity