From f458dc26ed1b4362539e8c4362787af6c1379684 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 15 Aug 2017 17:53:40 -0700 Subject: [PATCH] lnwallet: correct godoc comments on script util helper functions The godoc comments for htlcSpendRevoke and htlcSpendSuccess were incorrect. --- lnwallet/script_utils.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnwallet/script_utils.go b/lnwallet/script_utils.go index b7c9075b..03a60c7e 100644 --- a/lnwallet/script_utils.go +++ b/lnwallet/script_utils.go @@ -729,9 +729,9 @@ func secondLevelHtlcScript(revocationKey, delayKey *btcec.PublicKey, 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 -// 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, sweepTx *wire.MsgTx, csvDelay uint32) (wire.TxWitness, error) { @@ -768,7 +768,7 @@ func htlcSpendSuccess(signer Signer, signDesc *SignDescriptor, 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 // commitment transaction was broadcast. func htlcSpendRevoke(signer Signer, signDesc *SignDescriptor,