lnwallet: add error logging to getSignedCommitTx
This commit is contained in:
1 file changed
+4
-2
+4
-2
@@ -6232,7 +6232,8 @@ func (lc *LightningChannel) getSignedCommitTx() (*wire.MsgTx, error) {
|
|||||||
lc.taprootNonceProducer,
|
lc.taprootNonceProducer,
|
||||||
)
|
)
|
||||||
if err != nil {
|
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
|
// 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
|
// half of the signature for the state. We don't capture the
|
||||||
// sig as it's stored within the session.
|
// sig as it's stored within the session.
|
||||||
if _, err := musigSession.SignCommit(commitTx); err != nil {
|
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
|
// The final step is now to combine this signature we generated
|
||||||
|
|||||||
Reference in new issue
Block a user