contractcourt: update htlcTimeoutResolver for taproot chans

This commit is contained in:
Olaoluwa Osuntokun
2023-03-01 22:16:07 -08:00
parent 47f70dae3a
commit 23f7ee39c7
2 changed files with 174 additions and 29 deletions

8
lnutils/memory.go Normal file
View File

@@ -0,0 +1,8 @@
package lnutils
// PTr returns the pointer of the given value. This is useful in instances
// where a function returns the value, but a pointer is wanted. Without this,
// then an intermediate variable is needed.
func Ptr[T any](v T) *T {
return &v
}