Merge pull request #10289 from GeorgeTsagk/move-aux-closer

Aux Closer: Move coop-close aux finalization to chain watcher
This commit is contained in:
András Bánki-Horváth authored and GitHub committed 2026-01-13 15:31:34 +01:00
commit 72ab4d234a
8 files changed
+208 -118

No files matched your search

+3 -2
View File
@@ -69,6 +69,7 @@ import (
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
"github.com/lightningnetwork/lnd/lnwallet/chancloser"
"github.com/lightningnetwork/lnd/lnwallet/chanfunding"
"github.com/lightningnetwork/lnd/lnwallet/types"
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/macaroons"
"github.com/lightningnetwork/lnd/onionmessage"
@@ -3088,7 +3089,7 @@ func createRPCCloseUpdate(
err := fn.MapOptionZ(
u.LocalCloseOutput,
func(closeOut chancloser.CloseOutput) error {
func(closeOut types.CloseOutput) error {
cr, err := closeOut.ShutdownRecords.Serialize()
if err != nil {
return fmt.Errorf("error serializing "+
@@ -3113,7 +3114,7 @@ func createRPCCloseUpdate(
err = fn.MapOptionZ(
u.RemoteCloseOutput,
func(closeOut chancloser.CloseOutput) error {
func(closeOut types.CloseOutput) error {
cr, err := closeOut.ShutdownRecords.Serialize()
if err != nil {
return fmt.Errorf("error serializing "+