Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue: #2458
Upon the first launch, initializing and running dcrwallet requires significant time and effort from users.
"DCRW: gRPC server is configured with listeners, but no trusted client certificates exist (looked in /home/x/.dcrwallet/clients.pem)"
Although Decred provides a dcrinstall binary for quick installation and setup, there remains a need for active and comprehensive support for programs when run individually.
To address these issues:
Give notice when generating files automatically:
"DCRW: Config file does not exist. New default file created: C:\Users\UserName\AppData\Local\Dcrwallet\dcrwallet.conf"
If RPC information cannot be obtained from dcrd, provide the user with the option to run in SPV mode. The RPC username and password will be automatically generated for use in SPV mode.
“Would you like to launch SPV mode? (If SPV mode is selected, the username and password will be automatically generated.) (n/no/y/yes) [y]: ”
If SPV mode is enabled in the launch command (--spv), rpcuser and rpcpass are still initialized automatically if their values cannot be obtained from dcrd.
Wallet creation notice:
“The wallet does not exist. Do you want to create a wallet now? (n/no/y/yes) [y]:
Enter the private passphrase for your new wallet: Password
Confirm passphrase: Password
….
…..”
“The wallet has been created successfully. Do you want to launch dcrwallet now? (n/no/y/yes) [y]:”
warning msg:
“ [WRN] DCRW: The 'username' attribute in the config file is outdated. You should update it to 'rpcuser'
[WRN] DCRW: The 'password' attribute in the config file is outdated. You should update it to 'rpcpass'”
By implementing these solutions, the usability and consistency of dcrwallet can be significantly improved, addressing key challenges faced by users during initialization and configuration