Commit 7467aee
committed
fix: extend storage TTL on every invoice save
Soroban persistent storage entries expire if TTL is not extended.
Recurring and long-lived invoices risk becoming inaccessible.
Set min_ttl=100_000 ledgers, max_ttl=6_307_200 (~1 year at 5s/ledger)
on every save_invoice call.
Closes #51 parent cdc648d commit 7467aee
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments