multi: Fix typos [skip ci]

This commit is contained in:
Dimitris Apostolou
2022-01-13 18:29:43 +02:00
parent f50950640f
commit 530a2059e5
139 changed files with 254 additions and 254 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -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) {

View File

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

View File

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

View File

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