We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b6042 commit 565bc6dCopy full SHA for 565bc6d
tapchannelmsg/records.go
@@ -1333,6 +1333,20 @@ func NewHtlcAssetOutput(
1333
}
1334
1335
1336
+// FilterByHtlcIndex returns a slice of AssetOutputs that are associated with
1337
+// the given htlc index.
1338
+func (h *HtlcAssetOutput) FilterByHtlcIndex(id input.HtlcIndex) []*AssetOutput {
1339
+ if h.HtlcOutputs == nil {
1340
+ return nil
1341
+ }
1342
+
1343
+ if outputs, ok := h.HtlcOutputs[id]; ok {
1344
+ return outputs.Outputs
1345
1346
1347
1348
+}
1349
1350
// Record creates a Record out of a HtlcAssetOutput using the
1351
// eHtlcAssetOutput and dHtlcAssetOutput functions.
1352
//
0 commit comments