makeoffer: use correct keys

Fixes #158.
This commit is contained in:
Oliver Gugger 2024-08-27 10:49:58 +02:00
parent c6ffe38273
commit 1be76b0d08
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -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 {