Commit 594e1fb
committed
Update payment store before wallet persistence
Previously, we'd update the payment store after persisting the wallet in
some cases. This was fine as long as we iterated all wallet transactions
anyways (hence idempotent). However, now that we use the event-based
flow we should persist the payment store(s) first, so that wallet events
get replayed if there was a crash in-between some of the persistence
operations.1 parent 788055f commit 594e1fb
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments