Skip to content

Commit

Permalink
makeoffer: use correct keys
Browse files Browse the repository at this point in the history
Fixes #158.
  • Loading branch information
guggero committed Aug 27, 2024
1 parent c6ffe38 commit 1be76b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/chantools/zombierecovery_makeoffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1be76b0

Please sign in to comment.