Commit 79a6533
committed
Persist LSPS2 cleanup on intercept errors
When htlc_intercepted rejects an LSPS2-owned HTLC, it fails
the intercept and prunes the per-peer and global SCID mappings
before returning an API error. Persist the peer state after
releasing locks so the cleanup survives restarts.1 parent 95c0713 commit 79a6533
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| 1060 | + | |
1060 | 1061 | | |
1061 | 1062 | | |
1062 | 1063 | | |
1063 | 1064 | | |
1064 | 1065 | | |
1065 | 1066 | | |
1066 | | - | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1067 | 1076 | | |
1068 | 1077 | | |
1069 | 1078 | | |
| |||
0 commit comments