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 5f22a95 commit ed27108Copy full SHA for ed27108
lnwallet/aux_signer.go
@@ -116,6 +116,18 @@ func (a *AuxHtlcDescriptor) AddHeight(
116
return a.addCommitHeightLocal
117
}
118
119
+// IsAdd checks if the entry type of the Aux HTLC Descriptor is an add type.
120
+func (a *AuxHtlcDescriptor) IsAdd() bool {
121
+ switch a.EntryType {
122
+ case Add:
123
+ fallthrough
124
+ case NoopAdd:
125
+ return true
126
+ default:
127
+ return false
128
+ }
129
+}
130
+
131
// RemoveHeight returns the height at which the HTLC was removed from the
132
// commitment chain. The height is returned based on the chain the HTLC is being
133
// removed from (local or remote chain).
0 commit comments