-
Notifications
You must be signed in to change notification settings - Fork 1.2k
qt: Fix Repair tab #4715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt: Fix Repair tab #4715
Conversation
We no longer pass cmd line params to qt after 16578 backport. Use cmd line params stored in args manager instead.
src/qt/rpcconsole.cpp
Outdated
| for (const auto& key_pair : gArgs.GetCommandLineArgs()) { | ||
| for (const auto& value : key_pair.second) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, please use structured binding and name key_pair.first and key_pair.second
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK for squash merge
|
Ahah, this probably explains why my attempt to reindex a devnet recently resulted in a mainnet reindex 🤦♂️ |
* store cmd line params in args manager * qt: repair Repair We no longer pass cmd line params to qt after 16578 backport. Use cmd line params stored in args manager instead. * use structured binding * handle empty args correctly
* store cmd line params in args manager * qt: repair Repair We no longer pass cmd line params to qt after 16578 backport. Use cmd line params stored in args manager instead. * use structured binding * handle empty args correctly
It was broken by 7b8ddda. To reproduce the issue: open testnet wallet (via
--testnetin cmd line), open Repair tab, click "Upgrade wallet" (the less harmful one) - wallet restarts with-upgradewalletbut no--testnetso it's a mainnet wallet now.