diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-12 13:36:46 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-12 13:40:42 +0000 |
commit | bcb86ae6516ffd18bdd7bb4fa89be1def0588878 (patch) | |
tree | 1d52de7160f27894aa1898c23b6dd92e3c5125b0 /tests/cryptolib.pl | |
parent | Merge pull request #5386 (diff) | |
download | monero-bcb86ae6516ffd18bdd7bb4fa89be1def0588878.tar.xz |
wallet_rpc_server: fix inconsistent wallet caches on reload
Loading the same wallet as the currently loaded one would autosave
the current state after loading it, leading to some kind of rollback
effect. We now save before loading to avoid this. If loading fails,
it means the current wallet will be saved (or maybe not, depending
on where the failure occurs: most of the sanity checks occur before
saving). There is a new autosave_current flag to open/restore calls
so the (enabled by default) autosave can be skipped.
Diffstat (limited to 'tests/cryptolib.pl')
0 files changed, 0 insertions, 0 deletions