From 82a5addd3d67e722be15ed52e20959973850a2c8 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 10 Aug 2023 18:25:46 -0700 Subject: [PATCH] lnwallet: add error logging to getSignedCommitTx --- lnwallet/channel.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 412df4cfe..92ccd1a02 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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