mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
lnwallet: add error logging to getSignedCommitTx
This commit is contained in:
parent
da3ab2728b
commit
82a5addd3d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user