multi: move 3 vars from walletrpc+lncfg to chanfunding

This commit moves the constants LndInternalLockID and
DefaultLockDuration from the walletrpc package to the chanfunding
package, moves DefaultReservationTimeout from lncfg to chanfunding,
and also updates the lncli package with the new location.
This commit is contained in:
Alex Akselrod committed 2024-03-13 09:50:16 -07:00
1 parent 07ba9d6015
commit 4d2ab7423f
8 files changed
+42 -31

No files matched your search

+2 -1
View File
@@ -22,6 +22,7 @@ import (
"github.com/btcsuite/btcd/wire"
"github.com/lightningnetwork/lnd/lnrpc"
"github.com/lightningnetwork/lnd/lnrpc/walletrpc"
"github.com/lightningnetwork/lnd/lnwallet/chanfunding"
"github.com/urfave/cli"
)
@@ -1537,7 +1538,7 @@ func releaseOutput(ctx *cli.Context) error {
return fmt.Errorf("error parsing outpoint: %w", err)
}
lockID := walletrpc.LndInternalLockID[:]
lockID := chanfunding.LndInternalLockID[:]
lockIDStr := ctx.String("lockid")
if lockIDStr != "" {
var err error