Browse Source
Fixes: after adding a payment request, if the process was killed, the payreq might get lost. In case of using the GUI, neither the callee nor the caller called wallet.save_db(). Unclear where wallet.save_db() should be called... Now each method tries to persist their changes by default, but as an optimisation, the caller can pass write_to_disk=False e.g. when calling multiple such methods and then call wallet.save_db() itself. If we had partial writes, which would either rm the need for wallet.save_db() or at least make it cheaper, this code might get simpler... related: https://github.com/spesmilo/electrum/pull/6435 related: https://github.com/spesmilo/electrum/issues/4823patch-4
3 changed files with 29 additions and 20 deletions
Loading…
Reference in new issue