mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 18:03:08 +02:00
lnwallet/witnessgen: remove use of pointer to Signer iface
This commit is contained in:
@@ -35,7 +35,7 @@ type WitnessGenerator func(tx *wire.MsgTx, hc *txscript.TxSigHashes,
|
|||||||
|
|
||||||
// GenWitnessFunc will return a WitnessGenerator function that an output
|
// GenWitnessFunc will return a WitnessGenerator function that an output
|
||||||
// uses to generate the witness for a sweep transaction.
|
// uses to generate the witness for a sweep transaction.
|
||||||
func (wt WitnessType) GenWitnessFunc(signer *Signer,
|
func (wt WitnessType) GenWitnessFunc(signer Signer,
|
||||||
descriptor *SignDescriptor) WitnessGenerator {
|
descriptor *SignDescriptor) WitnessGenerator {
|
||||||
|
|
||||||
return func(tx *wire.MsgTx, hc *txscript.TxSigHashes,
|
return func(tx *wire.MsgTx, hc *txscript.TxSigHashes,
|
||||||
@@ -47,11 +47,11 @@ func (wt WitnessType) GenWitnessFunc(signer *Signer,
|
|||||||
|
|
||||||
switch wt {
|
switch wt {
|
||||||
case CommitmentTimeLock:
|
case CommitmentTimeLock:
|
||||||
return CommitSpendTimeout(*signer, desc, tx)
|
return CommitSpendTimeout(signer, desc, tx)
|
||||||
case CommitmentNoDelay:
|
case CommitmentNoDelay:
|
||||||
return CommitSpendNoDelay(*signer, desc, tx)
|
return CommitSpendNoDelay(signer, desc, tx)
|
||||||
case CommitmentRevoke:
|
case CommitmentRevoke:
|
||||||
return CommitSpendRevoke(*signer, desc, tx)
|
return CommitSpendRevoke(signer, desc, tx)
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("unknown witness type: %v", wt)
|
return nil, fmt.Errorf("unknown witness type: %v", wt)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user