decred / decrediton

Cross-platform GUI for Decred.
https://docs.decred.org/wallets/decrediton/decrediton-setup/
ISC License
195 stars 121 forks source link

[dex] -14: invalid passphrase (DEX isn't aware of password change in Decrediton) #3820

Closed norwnd closed 1 year ago

norwnd commented 2 years ago

Reproducible with Decrediton 1.7.5, assuming I already have a working DEX setup in Decrediton (I've imported my DEX-seed),

There is also the following log line in dexc:

-14: invalid passphrase` error on front-end
and `2022-10-19 16:46:40.749 [ERR] SRVR: error unlocking dcr wallet: failed to unlock dcr wallet: -14: invalid passphrase

As a work-around, I was able to manually update wallet password via set a new wallet password form (in Reconfigure Decred Wallet section), however it's not an obvious step to do (definitely not very smooth user experience). Update: this work-around stops working as soon as I quit from Decrediton app (when closing and re-opening DEX window without closing whole Decrediton app I'm able to lock/unlock wallet successfully, so only full restart of Decrediton seems to result in reverting to "broken state").

I think this step can be easily automated - when I change password (Private Passphrase) in Decrediton something should be done to propagate these changes to dexc as well. And if for some reason it can't, better error message (with some instructions on what to do) would be useful.

bgptr commented 2 years ago

On this