Skip to content

Conversation

@UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Mar 4, 2022

It was broken by 7b8ddda. To reproduce the issue: open testnet wallet (via --testnet in cmd line), open Repair tab, click "Upgrade wallet" (the less harmful one) - wallet restarts with -upgradewallet but no --testnet so it's a mainnet wallet now.

UdjinM6 added 2 commits March 4, 2022 16:00
We no longer pass cmd line params to qt after 16578 backport. Use cmd line params stored in args manager instead.
@UdjinM6 UdjinM6 added this to the 18 milestone Mar 4, 2022
Comment on lines 861 to 862
for (const auto& key_pair : gArgs.GetCommandLineArgs()) {
for (const auto& value : key_pair.second) {
Copy link
Member

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

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a 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

@UdjinM6 UdjinM6 merged commit f7159d8 into dashpay:develop Mar 5, 2022
@thephez
Copy link
Collaborator

thephez commented Mar 7, 2022

Ahah, this probably explains why my attempt to reindex a devnet recently resulted in a mainnet reindex 🤦‍♂️

gades pushed a commit to cosanta/cosanta-core that referenced this pull request Nov 9, 2023
* 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
gades pushed a commit to piratecash/pirate that referenced this pull request Dec 9, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants