mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-13 22:52:32 +02:00
lnwallet: add extra sanity check in VerifyCommitSig
This commit is contained in:
@ -436,6 +436,10 @@ func (m *MusigSession) VerifyCommitSig(commitTx *wire.MsgTx,
|
|||||||
optFunc(opts)
|
optFunc(opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sig == nil {
|
||||||
|
return nil, fmt.Errorf("sig not provided")
|
||||||
|
}
|
||||||
|
|
||||||
// Before we can verify the signature, we'll need to finalize the
|
// Before we can verify the signature, we'll need to finalize the
|
||||||
// session by binding the remote party's provided signing nonce.
|
// session by binding the remote party's provided signing nonce.
|
||||||
if err := m.FinalizeSession(musig2.Nonces{
|
if err := m.FinalizeSession(musig2.Nonces{
|
||||||
|
Reference in New Issue
Block a user