From 1be76b0d08459199a95ffa3f581292a885a7dfd4 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 27 Aug 2024 10:49:58 +0200 Subject: [PATCH] makeoffer: use correct keys Fixes #158. --- cmd/chantools/zombierecovery_makeoffer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/chantools/zombierecovery_makeoffer.go b/cmd/chantools/zombierecovery_makeoffer.go index a59cd11..1b3cc6d 100644 --- a/cmd/chantools/zombierecovery_makeoffer.go +++ b/cmd/chantools/zombierecovery_makeoffer.go @@ -270,7 +270,7 @@ func (c *zombieRecoveryMakeOfferCommand) Execute(_ *cobra.Command, return fmt.Errorf("error parsing our keys: %w", err) } - err = matchKeys(keys1.Channels, ourPubKeys, theirPubKeys, chainParams) + err = matchKeys(ourChannels, ourPubKeys, theirPubKeys, chainParams) if err != nil { return err } @@ -301,7 +301,7 @@ func (c *zombieRecoveryMakeOfferCommand) Execute(_ *cobra.Command, channel.vout = op.Index ourPart, theirPart, err := askAboutChannel( - channel, idx+1, len(keys1.Channels), ourPayoutAddr, + channel, idx+1, len(ourChannels), ourPayoutAddr, theirPayoutAddr, ) if err != nil {