electrum
electrum copied to clipboard
[Bug Report] [Android] Labels don't get saved unless app is closed with back button
Current Behavior: If labels are added to certain transactions and app is closed by opening app drawer(swipe up) then labels don't get saved which be seen when you open the app again. It does get saved properly if exited by back button and clicking on yes in the app prompt to close electrum.
Expected behavior: Labels should get saved as and when created regardless of if/how the app is closed.
Steps to reproduce:
- Open electrum and label any transaction, exit the app by swipe up from app drawer. Open electrum again to see that it doesn't get saved.
- Do the same again but close the app by clicking back button and click yes when prompted by app. Now when electrum is opened again, it shows the newly created label.
OS: AOSP 14 (Latest) Electrum version: 4.5.4.0
Sounds very similar to this #8389 maybe could be useful.
@pony-montana yes indeed
This would be fixed by https://github.com/spesmilo/electrum/pull/8736. There is some (implied) discussion there why it has not been merged yet: it is potentially expensive to rewrite the whole wallet file as part of saving (would need partial writes).