mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-28 10:41:57 +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,
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user