Commit a14ae8a
committed
Rework GraduatedRebalancer to work across restarts
Previously, we would await payment successes before doing a rebalance
successful event. This would cause issues if the app was closed during a
rebalance. This adds handling so the GraduatedRebalancer is now event
based and persists its state. We also now have better handling for
failed rebalances to go along with it.1 parent e648fe7 commit a14ae8a
16 files changed
Lines changed: 671 additions & 294 deletions
File tree
- graduated-rebalancer
- src
- orange-sdk
- src
- ffi/orange
- trusted_wallet
- cashu
- spark
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
0 commit comments