mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: Fix typos [skip ci]
This commit is contained in:
@@ -192,7 +192,7 @@ func (l *Lookout) processEpoch(epoch *chainntnfs.BlockEpoch,
|
||||
|
||||
// For each match, use our index to retrieve the original transaction,
|
||||
// which corresponds to the breaching commitment transaction. If the
|
||||
// decryption succeeds, we will accumlate the assembled justice
|
||||
// decryption succeeds, we will accumulate the assembled justice
|
||||
// descriptors in a single slice
|
||||
var successes []*JusticeDescriptor
|
||||
for _, match := range matches {
|
||||
|
||||
@@ -316,7 +316,7 @@ func (t *backupTask) craftSessionPayload(
|
||||
witness := inputScript.Witness
|
||||
rawSignature := witness[0][:len(witness[0])-1]
|
||||
|
||||
// Reencode the DER signature into a fixed-size 64 byte
|
||||
// Re-encode the DER signature into a fixed-size 64 byte
|
||||
// signature.
|
||||
signature, err := lnwire.NewSigFromRawSignature(rawSignature)
|
||||
if err != nil {
|
||||
|
||||
@@ -118,9 +118,9 @@ var _ SessionNegotiator = (*sessionNegotiator)(nil)
|
||||
|
||||
// newSessionNegotiator initializes a fresh sessionNegotiator instance.
|
||||
func newSessionNegotiator(cfg *NegotiatorConfig) *sessionNegotiator {
|
||||
// Generate the set of features the negitator will present to the tower
|
||||
// Generate the set of features the negotiator will present to the tower
|
||||
// upon connection. For anchor channels, we'll conditionally signal that
|
||||
// we require support for anchor channels depdening on the requested
|
||||
// we require support for anchor channels depending on the requested
|
||||
// policy.
|
||||
features := []lnwire.FeatureBit{
|
||||
wtwire.AltruistSessionsRequired,
|
||||
|
||||
@@ -615,7 +615,7 @@ func (c *ClientDB) CreateClientSession(session *ClientSession) error {
|
||||
}, func() {})
|
||||
}
|
||||
|
||||
// createSessionKeyIndexKey returns the indentifier used in the
|
||||
// createSessionKeyIndexKey returns the identifier used in the
|
||||
// session-key-index index, created as tower-id||blob-type.
|
||||
//
|
||||
// NOTE: The original serialization only used tower-id, which prevents
|
||||
|
||||
@@ -749,7 +749,7 @@ func checkCommittedUpdates(t *testing.T, session *wtdb.ClientSession,
|
||||
}
|
||||
}
|
||||
|
||||
// checkAckedUpdates asserts that the AckedUpdates on a sessio match the
|
||||
// checkAckedUpdates asserts that the AckedUpdates on a session match the
|
||||
// expUpdates provided.
|
||||
func checkAckedUpdates(t *testing.T, session *wtdb.ClientSession,
|
||||
expUpdates map[uint16]wtdb.BackupID) {
|
||||
|
||||
@@ -72,7 +72,7 @@ func (s *SessionInfo) Encode(w io.Writer) error {
|
||||
)
|
||||
}
|
||||
|
||||
// Decode deserializes the session infor from the given io.Reader.
|
||||
// Decode deserializes the session info from the given io.Reader.
|
||||
func (s *SessionInfo) Decode(r io.Reader) error {
|
||||
return ReadElements(r,
|
||||
&s.ID,
|
||||
|
||||
@@ -46,7 +46,7 @@ type Tower struct {
|
||||
|
||||
// AddAddress adds the given address to the tower's in-memory list of addresses.
|
||||
// If the address's string is already present, the Tower will be left
|
||||
// unmodified. Otherwise, the adddress is prepended to the beginning of the
|
||||
// unmodified. Otherwise, the address is prepended to the beginning of the
|
||||
// Tower's addresses, on the assumption that it is fresher than the others.
|
||||
//
|
||||
// NOTE: This method is NOT safe for concurrent use.
|
||||
|
||||
@@ -420,7 +420,7 @@ func runStateUpdateTest(test stateUpdateTest) func(*towerDBHarness) {
|
||||
continue
|
||||
}
|
||||
|
||||
// Don't perform the following checks and modfications
|
||||
// Don't perform the following checks and modifications
|
||||
// if we don't have an expected session to compare
|
||||
// against.
|
||||
if expSession == nil {
|
||||
|
||||
Reference in New Issue
Block a user