multi: always supply chain params when decoding addresses

This commit is contained in:
Joost Jager 2019-03-25 11:06:16 +01:00
parent ec40647147
commit 9a1b60b4be
No known key found for this signature in database
GPG key ID: A61B9D4C393C59C7
8 changed files with 35 additions and 22 deletions

View file

@ -44,7 +44,9 @@ func (s *swapClientServer) LoopOut(ctx context.Context,
}
} else {
var err error
sweepAddr, err = btcutil.DecodeAddress(in.Dest, nil)
sweepAddr, err = btcutil.DecodeAddress(
in.Dest, s.lnd.ChainParams,
)
if err != nil {
return nil, fmt.Errorf("decode address: %v", err)
}