jeff 9f981ac219
wallet: store watch-only wallet correctly when change_password() is called
The Monero GUI code was calling `Monero::wallet::setPassword()` on every open/close for some reason,
and the old `store_to()` code called `store_keys()` with `watch_only=false`, even for watch-only wallets.
This caused a bug where the watch-only keys file got saved with with the JSON field `watch_only` set to 0,
and after saving a watch-only wallet once, a user could never open it back up against because `load()` errored out.
This never got brought up before this because you would have to change the file location of the watch-only
wallet to see this bug, and I guess that didn't happen often, but calling the new `store_to()` function with the
new `force_rewrite` parameter set to `true` triggers key restoring and the bug appeared.
2023-09-21 22:42:16 -05:00
..
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-07-06 21:41:12 -05:00
2023-06-27 11:37:54 -05:00
2023-08-17 10:21:40 -05:00
2023-06-27 11:39:33 -05:00
2023-06-27 11:31:27 -05:00
2023-01-16 13:00:18 +01:00
2023-04-25 11:12:56 -04:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-01-16 13:00:18 +01:00
2023-04-25 11:22:50 -04:00
2023-04-25 11:12:56 -04:00
2023-08-17 10:17:46 -05:00
2023-08-17 10:23:10 -05:00
2023-01-16 13:00:18 +01:00
2023-04-25 11:12:56 -04:00