Skip to content

Commit

Permalink
contractcourt: fix doc of commitSweepResolver
Browse files Browse the repository at this point in the history
It is used for sweeping time-locked outputs as well as non time-locked outputs.
  • Loading branch information
starius committed Oct 2, 2024
1 parent 4aeb3e7 commit f0bfbc8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions contractcourt/commit_sweep_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,15 @@ import (
)

// commitSweepResolver is a resolver that will attempt to sweep the commitment
// output paying to us, in the case that the remote party broadcasts their
// version of the commitment transaction. We can sweep this output immediately,
// as it doesn't have a time-lock delay.
// output paying to us (local channel balance). In the case that the local
// party (we) broadcasts their version of the commitment transaction, we have
// to wait before sweeping it, as it has a CSV delay. For anchor channel
// type, even if the remote party broadcasts the commitment transaction,
// we have to wait one block after commitment transaction is confirmed,
// because CSV 1 is put into the script of UTXO representing local balance.
// Additionally, if the channel is a channel lease, we have to wait for
// CLTV to expire.
// https://docs.lightning.engineering/lightning-network-tools/pool/overview
type commitSweepResolver struct {
// localChanCfg is used to provide the resolver with the keys required
// to identify whether the commitment transaction was broadcast by the
Expand Down

0 comments on commit f0bfbc8

Please sign in to comment.