-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework XxxCommitPublished types (#1728)
Re-work the `CommitPublished` types to work better with anchor outputs. We previously stored the txs spending utxos that we could claim: this doesn't make sense anymore if these txs may be RBF-ed, because the final tx will be different from the initial one. We instead track what `OutPoint`s we can claim, and the information necessary to claim them. This way we can in the future let a different actor finalize the txs that spend these outpoints (set the fees and sign). We also add information on mutual close txs to immediately identify our output and its amount: this makes auditing how much sats we'll get back very easy from the API when we have many channels to watch. This commit contains a DB migration of the channel data types, but in a backwards-compatible way: we can still read from old data. The only scenario impacted is channels that started force-closing before the migration. They need special care to handle the fact that they had less data than migrated channels, which is why we keep some legacy code around.
- Loading branch information
Showing
30 changed files
with
2,261 additions
and
1,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
179 changes: 95 additions & 84 deletions
179
eclair-core/src/main/scala/fr/acinq/eclair/channel/Channel.scala
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.