mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-21 14:10:35 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -450,7 +450,7 @@ func signSegWitV0(in *psbt.PInput, tx *wire.MsgTx,
|
||||
in.SighashType, privKey,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error signing input %d: %v", idx, err)
|
||||
return fmt.Errorf("error signing input %d: %w", idx, err)
|
||||
}
|
||||
in.PartialSigs = append(in.PartialSigs, &psbt.PartialSig{
|
||||
PubKey: pubKeyBytes,
|
||||
@@ -472,7 +472,7 @@ func signSegWitV1KeySpend(in *psbt.PInput, tx *wire.MsgTx,
|
||||
privKey,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error signing taproot input %d: %v", idx,
|
||||
return fmt.Errorf("error signing taproot input %d: %w", idx,
|
||||
err)
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ func signSegWitV1ScriptSpend(in *psbt.PInput, tx *wire.MsgTx,
|
||||
in.WitnessUtxo.PkScript, leaf, in.SighashType, privKey,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error signing taproot script input %d: %v",
|
||||
return fmt.Errorf("error signing taproot script input %d: %w",
|
||||
idx, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user