mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-12 14:42:38 +02:00
multi: fix fmt.Errorf error wrapping
Refactor fmt.Errorf usage to correctly wrap errors instead of using non-wrapping format verbs.
This commit is contained in:
@@ -156,7 +156,7 @@ func signDigestCompact(hash []byte) ([]byte, error) {
|
||||
// ecdsa.SignCompact returns a pubkey-recoverable signature
|
||||
sig, err := ecdsa.SignCompact(privKey, hash, isCompressedKey)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("can't sign the hash: %v", err)
|
||||
return nil, fmt.Errorf("can't sign the hash: %w", err)
|
||||
}
|
||||
|
||||
return sig, nil
|
||||
|
Reference in New Issue
Block a user