lnrpc: add new CommitmentType for script enforced leased channels

This commit is contained in:
Wilmer Paulino authored and Olaoluwa Osuntokun committed 2021-10-19 18:30:43 -07:00
1 parent e1c269c7ed
commit c9f6d788e2
4 files changed
+425 -392

No files matched your search

+9
View File
@@ -1229,6 +1229,15 @@ enum CommitmentType {
been broadcast.
*/
ANCHORS = 3;
/*
A channel that uses a commitment type that builds upon the anchors
commitment format, but in addition requires a CLTV clause to spend outputs
paying to the channel initiator. This is intended for use on leased channels
to guarantee that the channel initiator has no incentives to close a leased
channel before its maturity date.
*/
SCRIPT_ENFORCED_LEASE = 4;
}
message ChannelConstraints {