Commit 9c32cc2
authored
Remove deprecated serialization format and fields (#685)
The v4 serialization format was released in July 2023 with better
support for backwards-compatibility: the v2 and v3 formats used
kotlin's serialization, which prevents us from removing legacy
classes and requires additional code whenever we change something
in the channel state.
Users who haven't migrated their data to the v4 format will not be
able to deserialize their channel data: they will need to use a
previous version of the app to read their old channel data, write
it to the v4 format and then upgrade to the latest version.
We also remove a bunch of fields/options that were deprecated a
while ago:
- legacy channel funding states
- unused legacy features
- legacy node events
- legacy encrypted channel backup1 parent dc983d7 commit 9c32cc2
File tree
132 files changed
+2170
-12522
lines changed- modules/core/src
- commonMain/kotlin/fr/acinq/lightning
- channel/states
- io
- json
- payment
- serialization/channel
- v2
- v3
- v4
- wire
- commonTest
- kotlin/fr/acinq/lightning
- crypto
- payment
- serialization/channel
- resources/nonreg
- v2
- Closing_0ba41d17
- Closing_0ed6ff68
- Closing_0efffae3
- Closing_2fd2a3fa
- Closing_3bb07fb6
- Closing_8f1a524e
- Closing_ef682e2e
- Negotiating_c8d15808
- Negotiating_d9b4cd96
- Negotiating_ee10091c
- Negotiating_f52b19b8
- Normal_748a735b
- Normal_e2253ddd
- Normal_ff248f8d
- Normal_ff4a71b6
- Normal_ffd9f5db
- ShuttingDown_c321b947
- ShuttingDown_f89ecd50
- WaitForFundingConfirmed_f7421b49
- WaitForFundingConfirmed_fe3c5978
- WaitForFundingConfirmed_ff74dd33
- WaitForFundingLocked_f3437082
- WaitForRemotePublishFutureCommitment_ae47fde9
- WaitForRemotePublishFutureCommitment_d803549f
- v3
- Closing_029bf8f3
- Closing_0ba41d17
- Closing_0ed6ff68
- Closing_0efffae3
- Closing_ebbd24bc
- Closing_f137669f
- Negotiating_da44c6e2
- Negotiating_dabbed55
- Negotiating_fadb50c1
- Normal_fd10d3cc
- Normal_fe897b64
- Normal_ff248f8d
- Normal_ff4a71b6
- ShuttingDown_ef41a1a5
- ShuttingDown_ef7081a1
- WaitForFundingConfirmed_fe3c5978
- WaitForFundingConfirmed_ff74dd33
- WaitForFundingLocked_f3437082
- WaitForRemotePublishFutureCommitment_ae47fde9
- WaitForRemotePublishFutureCommitment_d803549f
- v4
- Closing_Local_ebb9087c
- Closing_Mutual_ebb9087c
- Closing_Remote_ebb9087c
- Closing_Revoked_ebb9087c
- Negotiating_fac54067
- Normal_ebb9087c
- ShuttingDown_fac54067
- WaitForChannelReady_fac54067
- WaitForFundingConfirmed_fac54067
- WaitForRemotePublishFutureCommitment_ebb9087c
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
132 files changed
+2170
-12522
lines changedLines changed: 0 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 157 | | |
169 | 158 | | |
170 | 159 | | |
| |||
182 | 171 | | |
183 | 172 | | |
184 | 173 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 174 | | |
194 | 175 | | |
195 | 176 | | |
| |||
206 | 187 | | |
207 | 188 | | |
208 | 189 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | 190 | | |
258 | 191 | | |
259 | 192 | | |
| |||
354 | 287 | | |
355 | 288 | | |
356 | 289 | | |
357 | | - | |
358 | 290 | | |
359 | 291 | | |
360 | 292 | | |
361 | | - | |
362 | 293 | | |
363 | 294 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 295 | | |
371 | 296 | | |
372 | 297 | | |
| |||
401 | 326 | | |
402 | 327 | | |
403 | 328 | | |
404 | | - | |
405 | 329 | | |
406 | 330 | | |
407 | 331 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | 251 | | |
254 | 252 | | |
255 | 253 | | |
| |||
Lines changed: 0 additions & 88 deletions
This file was deleted.
modules/core/src/commonMain/kotlin/fr/acinq/lightning/channel/states/LegacyWaitForFundingLocked.kt
Lines changed: 0 additions & 83 deletions
This file was deleted.
Lines changed: 0 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
117 | 114 | | |
118 | 115 | | |
119 | 116 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 117 | | |
128 | 118 | | |
129 | 119 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
0 commit comments