From fef927e2767afc8af6bc00c58a94e988922b1c68 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 14 Nov 2016 18:37:14 -0800 Subject: [PATCH] lnwallet: correct good comments on state hint helper funcs --- lnwallet/script_utils.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lnwallet/script_utils.go b/lnwallet/script_utils.go index af6f7c747..c782258d5 100644 --- a/lnwallet/script_utils.go +++ b/lnwallet/script_utils.go @@ -772,9 +772,9 @@ func deriveElkremRoot(elkremDerivationRoot *btcec.PrivateKey, return elkremRoot } -// setHeightHint encodes the current state number within the passed commitment -// transaction by re-purposing the sequence fields in the input of the -// commitment transaction to encode the obfuscated state number. The state +// setStateNumHint encodes the current state number within the passed +// commitment transaction by re-purposing the sequence fields in the input of +// the commitment transaction to encode the obfuscated state number. The state // number is encoded using 31-bits of the sequence number, with the top bit set // in order to disable BIP0068 (sequence locks) semantics. Finally before // encoding, the obfuscater is XOR'd against the state number in order to hide @@ -809,7 +809,7 @@ func setStateNumHint(commitTx *wire.MsgTx, stateNum uint32, return nil } -// getHeightHint recovers the current state number given a commitment +// getStateNumHint recovers the current state number given a commitment // transaction which has previously had the state number encoded within it via // setStateNumHint and a shared obsfucator. //