lnrpc+rpcserver: add musig2 to ChanPointShim

This commit is contained in:
Oliver Gugger committed 2023-09-26 21:45:17 +02:00
1 parent ebf98c6d51
commit d94ae3f509
4 files changed
+1926 -1907

No files matched your search

+1916 -1906
View File
File diff suppressed because it is too large. Load diff
+5
View File
@@ -2453,6 +2453,11 @@ message ChanPointShim {
the value is less than 500,000, or as an absolute height otherwise.
*/
uint32 thaw_height = 6;
/*
Indicates that the funding output is using a MuSig2 multi-sig output.
*/
bool musig2 = 7;
}
message PsbtShim {
+4
View File
@@ -3469,6 +3469,10 @@
"type": "integer",
"format": "int64",
"description": "This uint32 indicates if this channel is to be considered 'frozen'. A frozen\nchannel does not allow a cooperative channel close by the initiator. The\nthaw_height is the height that this restriction stops applying to the\nchannel. The height can be interpreted in two ways: as a relative height if\nthe value is less than 500,000, or as an absolute height otherwise."
},
"musig2": {
"type": "boolean",
"description": "Indicates that the funding output is using a MuSig2 multi-sig output."
}
}
},
+1 -1
View File
@@ -1824,7 +1824,7 @@ func newFundingShimAssembler(chanPointShim *lnrpc.ChanPointShim, initiator bool,
return chanfunding.NewCannedAssembler(
chanPointShim.ThawHeight, *chanPoint,
btcutil.Amount(chanPointShim.Amt), &localKeyDesc,
remoteKey, initiator, false,
remoteKey, initiator, chanPointShim.Musig2,
), nil
}