Page MenuHomePhabricator

[native/web] add SQL transaction to persisting crypto module
ClosedPublic

Authored by kamil on Apr 22 2024, 4:01 PM.
Tags
None
Referenced Files
F3343579: D11721.id39372.diff
Fri, Nov 22, 3:21 AM
F3340910: D11721.diff
Thu, Nov 21, 10:13 PM
Unknown Object (File)
Fri, Nov 8, 5:12 PM
Unknown Object (File)
Tue, Nov 5, 3:41 PM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:24 PM
Unknown Object (File)
Wed, Oct 23, 7:21 PM
Subscribers

Details

Summary

Not sure why there was no transaction here, but I think it's better to add this. Mostly because it implies more than one operation (persisting two accounts in two separate calls).

Wondering what @marcin thinks about this change.

Depends on D11720

Test Plan

Play a bit with crypto-related API to make sure it still works.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Apr 23 2024, 6:38 AM

I think it is good to add a transaction here as it will force accounts states in SQLite to be in sync.

This revision is now accepted and ready to land.Apr 24 2024, 3:21 AM