multi: Fix typos [skip ci]
This commit is contained in:
139 files changed
+254
-254
No files matched your search
@@ -313,7 +313,7 @@ func NewDNSSeedBootstrapper(
|
||||
|
||||
// fallBackSRVLookup attempts to manually query for SRV records we need to
|
||||
// properly bootstrap. We do this by querying the special record at the "soa."
|
||||
// sub-domain of supporting DNS servers. The retuned IP address will be the IP
|
||||
// sub-domain of supporting DNS servers. The returned IP address will be the IP
|
||||
// address of the authoritative DNS server. Once we have this IP address, we'll
|
||||
// connect manually over TCP to request the SRV record. This is necessary as
|
||||
// the records we return are currently too large for a class of resolvers,
|
||||
@@ -361,7 +361,7 @@ func (d *DNSSeedBootstrapper) fallBackSRVLookup(soaShim string,
|
||||
"received: %v", resp.Rcode)
|
||||
}
|
||||
|
||||
// Retrieve the RR(s) of the Answer section, and covert to the format
|
||||
// Retrieve the RR(s) of the Answer section, and convert to the format
|
||||
// that net.LookupSRV would normally return.
|
||||
var rrs []*net.SRV
|
||||
for _, rr := range resp.Answer {
|
||||
|
||||
@@ -286,7 +286,7 @@ type cachedNetworkMsg struct {
|
||||
}
|
||||
|
||||
// Size returns the "size" of an entry. We return the number of items as we
|
||||
// just want to limit the total amount of entires rather than do accurate size
|
||||
// just want to limit the total amount of entries rather than do accurate size
|
||||
// accounting.
|
||||
func (c *cachedNetworkMsg) Size() (uint64, error) {
|
||||
return uint64(len(c.msgs)), nil
|
||||
|
||||
@@ -2329,8 +2329,8 @@ func TestProcessZombieEdgeNowLive(t *testing.T) {
|
||||
}
|
||||
|
||||
// We'll also add the edge to our zombie index, provide a blank pubkey
|
||||
// for the first node as we're simulating the sitaution where the first
|
||||
// ndoe is updating but the second node isn't. In this case we only
|
||||
// for the first node as we're simulating the situation where the first
|
||||
// node is updating but the second node isn't. In this case we only
|
||||
// want to allow a new update from the second node to allow the entire
|
||||
// edge to be resurrected.
|
||||
chanID := batch.chanAnn.ShortChannelID
|
||||
@@ -2350,7 +2350,7 @@ func TestProcessZombieEdgeNowLive(t *testing.T) {
|
||||
}
|
||||
processAnnouncement(batch.chanUpdAnn1, true, true)
|
||||
|
||||
// At this point, the channel should still be consiered a zombie.
|
||||
// At this point, the channel should still be considered a zombie.
|
||||
_, _, _, err = ctx.router.GetChannelByID(chanID)
|
||||
if err != channeldb.ErrZombieEdge {
|
||||
t.Fatalf("channel should still be a zombie")
|
||||
@@ -2448,7 +2448,7 @@ func TestReceiveRemoteChannelUpdateFirst(t *testing.T) {
|
||||
remotePeer := &mockPeer{remoteKey, sentMsgs, ctx.gossiper.quit}
|
||||
|
||||
// Override NotifyWhenOnline to return the remote peer which we expect
|
||||
// meesages to be sent to.
|
||||
// messages to be sent to.
|
||||
ctx.gossiper.reliableSender.cfg.NotifyWhenOnline = func(peer [33]byte,
|
||||
peerChan chan<- lnpeer.Peer) {
|
||||
|
||||
@@ -2645,7 +2645,7 @@ func TestExtraDataChannelAnnouncementValidation(t *testing.T) {
|
||||
// We'll now create an announcement that contains an extra set of bytes
|
||||
// that we don't know of ourselves, but should still include in the
|
||||
// final signature check.
|
||||
extraBytes := []byte("gotta validate this stil!")
|
||||
extraBytes := []byte("gotta validate this still!")
|
||||
ca, err := createRemoteChannelAnnouncement(0, extraBytes)
|
||||
if err != nil {
|
||||
t.Fatalf("can't create channel announcement: %v", err)
|
||||
@@ -2828,7 +2828,7 @@ func TestRetransmit(t *testing.T) {
|
||||
}
|
||||
remotePeer := &mockPeer{remoteKey, nil, nil}
|
||||
|
||||
// Process a local channel annoucement, channel update and node
|
||||
// Process a local channel announcement, channel update and node
|
||||
// announcement. No messages should be broadcasted yet, since no proof
|
||||
// has been exchanged.
|
||||
assertProcessAnnouncement(
|
||||
@@ -2961,7 +2961,7 @@ func TestNodeAnnouncementNoChannels(t *testing.T) {
|
||||
}
|
||||
|
||||
// Now add the node's channel to the graph by processing the channel
|
||||
// announement and channel update.
|
||||
// announcement and channel update.
|
||||
select {
|
||||
case err = <-ctx.gossiper.ProcessRemoteAnnouncement(batch.chanAnn,
|
||||
remotePeer):
|
||||
@@ -3002,7 +3002,7 @@ func TestNodeAnnouncementNoChannels(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// Processing the same node announement again should be ignored, as it
|
||||
// Processing the same node announcement again should be ignored, as it
|
||||
// is stale.
|
||||
select {
|
||||
case err = <-ctx.gossiper.ProcessRemoteAnnouncement(batch.nodeAnn2,
|
||||
|
||||
@@ -220,7 +220,7 @@ func (m *SyncManager) syncerHandler() {
|
||||
initialHistoricalSyncer *GossipSyncer
|
||||
|
||||
// initialHistoricalSyncSignal is a signal that will fire once
|
||||
// the intiial historical sync has been completed. This is
|
||||
// the initial historical sync has been completed. This is
|
||||
// crucial to ensure that another historical sync isn't
|
||||
// attempted just because the initialHistoricalSyncer was
|
||||
// disconnected.
|
||||
@@ -232,7 +232,7 @@ func (m *SyncManager) syncerHandler() {
|
||||
initialHistoricalSyncSignal = s.ResetSyncedSignal()
|
||||
|
||||
// Restart the timer for our new historical sync peer. This will
|
||||
// ensure that all initial syncers recevie an equivalent
|
||||
// ensure that all initial syncers receive an equivalent
|
||||
// duration before attempting the next sync. Without doing so we
|
||||
// might attempt two historical sync back to back if a peer
|
||||
// disconnects just before the ticker fires.
|
||||
@@ -362,7 +362,7 @@ func (m *SyncManager) syncerHandler() {
|
||||
// Otherwise, our initialHistoricalSyncer corresponds to
|
||||
// the peer being disconnected, so we'll have to find a
|
||||
// replacement.
|
||||
log.Debug("Finding replacement for intitial " +
|
||||
log.Debug("Finding replacement for initial " +
|
||||
"historical sync")
|
||||
|
||||
s := m.forceHistoricalSync()
|
||||
|
||||
Reference in new issue
Block a user