lnwallet: correct godoc comments on script util helper functions

The godoc comments for htlcSpendRevoke and htlcSpendSuccess were
incorrect.
This commit is contained in:
Olaoluwa Osuntokun 2017-08-15 17:53:40 -07:00
parent c4e43dbaa2
commit f458dc26ed
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
1 changed files with 3 additions and 3 deletions

View File

@ -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,