You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add DATA_CLOSED class when active channel is closed (#3170)
We introduce a `DATA_CLOSED` class with minimal information about a
past channel that has been fully closed. This will let us deprecate
legacy channels without having backwards-compatibility issues with
very old closed channels inside our DB.
When channels have never been properly opened or used, we don't
bother storing them in our DB, as it would open the door to DoS
attacks.
We create a dedicated table to store `DATA_CLOSED`. We migrate the
existing DB and remove the foreign key constraint on `htlc_infos`.
Copy file name to clipboardExpand all lines: docs/release-notes/eclair-vnext.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,15 @@
11
11
We remove the code used to deserialize channel data from versions of eclair prior to v0.13.
12
12
Node operators running a version of `eclair` older than v0.13 must first upgrade to v0.13 to migrate their channel data, and then upgrade to the latest version.
13
13
14
+
### Move closed channels to dedicated database table
15
+
16
+
We previously kept closed channels in the same database table as active channels, with a flag indicating that it was closed.
17
+
This creates performance issues for nodes with a large history of channels, and creates backwards-compatibility issues when changing the channel data format.
18
+
19
+
We now store closed channels in a dedicated table, where we only keep relevant information regarding the channel.
20
+
When restarting your node, the channels table will automatically be cleaned up and closed channels will move to the new table.
21
+
This may take some time depending on your channels history, but will only happen once.
22
+
14
23
### Update minimal version of Bitcoin Core
15
24
16
25
With this release, eclair requires using Bitcoin Core 29.1.
@@ -22,7 +31,7 @@ Newer versions of Bitcoin Core may be used, but have not been extensively tested
22
31
23
32
### API changes
24
33
25
-
<insertchanges>
34
+
- the `closedchannels` API now returns human-readable channel data
0 commit comments