lnwallet: correct godoc comments on script util helper functions
The godoc comments for htlcSpendRevoke and htlcSpendSuccess were incorrect.
This commit is contained in:
1 file changed
+3
-3
@@ -729,9 +729,9 @@ func secondLevelHtlcScript(revocationKey, delayKey *btcec.PublicKey,
|
|||||||
return builder.Script()
|
return builder.Script()
|
||||||
}
|
}
|
||||||
|
|
||||||
// htlcSuccessSpend spends a second-level HTLC output. This function is to be
|
// htlcSpendSuccess spends a second-level HTLC output. This function is to be
|
||||||
// used by the sender of an HTLC to claim the output after a relative timeout
|
// used by the sender of an HTLC to claim the output after a relative timeout
|
||||||
// or the receiver of the HTLC to claim on-chain with the pre-image.o
|
// or the receiver of the HTLC to claim on-chain with the pre-image.
|
||||||
func htlcSpendSuccess(signer Signer, signDesc *SignDescriptor,
|
func htlcSpendSuccess(signer Signer, signDesc *SignDescriptor,
|
||||||
sweepTx *wire.MsgTx, csvDelay uint32) (wire.TxWitness, error) {
|
sweepTx *wire.MsgTx, csvDelay uint32) (wire.TxWitness, error) {
|
||||||
|
|
||||||
@@ -768,7 +768,7 @@ func htlcSpendSuccess(signer Signer, signDesc *SignDescriptor,
|
|||||||
return witnessStack, nil
|
return witnessStack, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// htlcTimeoutSpend spends a second-level HTLC output. This function is to be
|
// htlcTimeoutRevoke spends a second-level HTLC output. This function is to be
|
||||||
// used by the sender or receiver of an HTLC to claim the HTLC after a revoked
|
// used by the sender or receiver of an HTLC to claim the HTLC after a revoked
|
||||||
// commitment transaction was broadcast.
|
// commitment transaction was broadcast.
|
||||||
func htlcSpendRevoke(signer Signer, signDesc *SignDescriptor,
|
func htlcSpendRevoke(signer Signer, signDesc *SignDescriptor,
|
||||||
|
|||||||
Reference in new issue
Block a user