mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 05:45:21 +01:00
lnwallet+lnd: ensure curve parameters are set to avoid panics
This commit fixes a bug introduced by the past attempt to Make Logging Great Again. Since we unset the curve parameters when reading/writing the messages, if we have a lingering reference that’s active elsewhere in the daemon, then we’ll modify that reference. To fix this, we now explicitly set the Curve parameters in two areas. A similar commit has been pushed to lightning-onion.
This commit is contained in:
parent
ee96052e44
commit
55f89be10f
@ -1312,6 +1312,7 @@ func (lc *LightningChannel) ReceiveNewCommitment(rawSig []byte,
|
||||
|
||||
// Ensure that the newly constructed commitment state has a valid
|
||||
// signature.
|
||||
theirMultiSigKey.Curve = btcec.S256()
|
||||
sig, err := btcec.ParseSignature(rawSig, btcec.S256())
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user