aboutsummaryrefslogtreecommitdiff
path: root/tests/cryptolib.pl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-12 13:36:46 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-12 13:40:42 +0000
commitbcb86ae6516ffd18bdd7bb4fa89be1def0588878 (patch)
tree1d52de7160f27894aa1898c23b6dd92e3c5125b0 /tests/cryptolib.pl
parentMerge pull request #5386 (diff)
downloadmonero-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