mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-03 18:22:25 +02:00
contractcourt: update htlcTimeoutResolver for taproot chans
This commit is contained in:
8
lnutils/memory.go
Normal file
8
lnutils/memory.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user