mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-03 17:26:57 +01:00
lnwallet: correct good comments on state hint helper funcs
This commit is contained in:
parent
d43ef24ed3
commit
fef927e276
1 changed files with 4 additions and 4 deletions
|
@ -772,9 +772,9 @@ func deriveElkremRoot(elkremDerivationRoot *btcec.PrivateKey,
|
||||||
return elkremRoot
|
return elkremRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
// setHeightHint encodes the current state number within the passed commitment
|
// setStateNumHint encodes the current state number within the passed
|
||||||
// transaction by re-purposing the sequence fields in the input of the
|
// commitment transaction by re-purposing the sequence fields in the input of
|
||||||
// commitment transaction to encode the obfuscated state number. The state
|
// 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
|
// 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
|
// in order to disable BIP0068 (sequence locks) semantics. Finally before
|
||||||
// encoding, the obfuscater is XOR'd against the state number in order to hide
|
// 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
|
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
|
// transaction which has previously had the state number encoded within it via
|
||||||
// setStateNumHint and a shared obsfucator.
|
// setStateNumHint and a shared obsfucator.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Reference in a new issue