lnwallet: add error logging to getSignedCommitTx

This commit is contained in:
Olaoluwa Osuntokun 2023-08-10 18:25:46 -07:00
parent da3ab2728b
commit 82a5addd3d
No known key found for this signature in database
GPG Key ID: 3BBD59E99B280306

View File

@ -6232,7 +6232,8 @@ func (lc *LightningChannel) getSignedCommitTx() (*wire.MsgTx, error) {
lc.taprootNonceProducer,
)
if err != nil {
return nil, err
return nil, fmt.Errorf("unable to re-derive "+
"verification nonce: %w", err)
}
// Now that we have the local nonce, we'll re-create the musig
@ -6266,7 +6267,8 @@ func (lc *LightningChannel) getSignedCommitTx() (*wire.MsgTx, error) {
// half of the signature for the state. We don't capture the
// sig as it's stored within the session.
if _, err := musigSession.SignCommit(commitTx); err != nil {
return nil, err
return nil, fmt.Errorf("unable to sign musig2 "+
"commitment: %w", err)
}
// The final step is now to combine this signature we generated