multi: Fix typos [skip ci]
This commit is contained in:
139 files changed
+254
-254
No files matched your search
@@ -438,7 +438,7 @@ func (cm *circuitMap) cleanClosedChannels() error {
|
||||
return ErrCorruptedCircuitMap
|
||||
}
|
||||
|
||||
// Delete the ciruit.
|
||||
// Delete the circuit.
|
||||
for inKey := range circuitKeySet {
|
||||
if err := circuitBkt.Delete(inKey.Bytes()); err != nil {
|
||||
return err
|
||||
|
||||
@@ -85,7 +85,7 @@ func (s *InterceptableSwitch) interceptForward(packet *htlcPacket,
|
||||
|
||||
switch htlc := packet.htlc.(type) {
|
||||
case *lnwire.UpdateAddHTLC:
|
||||
// We are not interested in intercepting initated payments.
|
||||
// We are not interested in intercepting initiated payments.
|
||||
if packet.incomingChanID == hop.Source {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -3507,7 +3507,7 @@ func TestChannelRetransmission(t *testing.T) {
|
||||
{"alice", "bob", &lnwire.RevokeAndAck{}, false},
|
||||
|
||||
// Proceed the payment farther by sending the
|
||||
// fulfilment message and trigger the state
|
||||
// fulfillment message and trigger the state
|
||||
// update.
|
||||
{"bob", "alice", &lnwire.UpdateFulfillHTLC{}, false},
|
||||
{"bob", "alice", &lnwire.CommitSig{}, false},
|
||||
@@ -3548,7 +3548,7 @@ func TestChannelRetransmission(t *testing.T) {
|
||||
{"bob", "alice", &lnwire.CommitSig{}, false},
|
||||
|
||||
// Proceed the payment farther by sending the
|
||||
// fulfilment message and trigger the state
|
||||
// fulfillment message and trigger the state
|
||||
// update.
|
||||
{"alice", "bob", &lnwire.RevokeAndAck{}, false},
|
||||
{"bob", "alice", &lnwire.UpdateFulfillHTLC{}, false},
|
||||
@@ -5980,7 +5980,7 @@ func newHodlInvoiceTestCtx(t *testing.T) (*hodlInvoiceTestCtx, error) {
|
||||
t.Fatal("timeout")
|
||||
case h := <-receiver.registry.settleChan:
|
||||
if hash != h {
|
||||
t.Fatal("unexpect invoice settled")
|
||||
t.Fatal("unexpected invoice settled")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ type mailBoxConfig struct {
|
||||
// belongs to.
|
||||
shortChanID lnwire.ShortChannelID
|
||||
|
||||
// fetchUpdate retreives the most recent channel update for the channel
|
||||
// fetchUpdate retrieves the most recent channel update for the channel
|
||||
// this mailbox belongs to.
|
||||
fetchUpdate func(lnwire.ShortChannelID) (*lnwire.ChannelUpdate, error)
|
||||
|
||||
@@ -803,7 +803,7 @@ type mailOrchestrator struct {
|
||||
// chan_id -> short_chan_id
|
||||
// short_chan_id -> mailbox
|
||||
// so that Deliver can lookup mailbox directly once live,
|
||||
// but still queriable by channel_id.
|
||||
// but still queryable by channel_id.
|
||||
|
||||
// unclaimedPackets maps a live short chan id to queue of packets if no
|
||||
// mailbox has been created.
|
||||
@@ -816,7 +816,7 @@ type mailOrchConfig struct {
|
||||
// properly exit during shutdown.
|
||||
forwardPackets func(chan struct{}, ...*htlcPacket) error
|
||||
|
||||
// fetchUpdate retreives the most recent channel update for the channel
|
||||
// fetchUpdate retrieves the most recent channel update for the channel
|
||||
// this mailbox belongs to.
|
||||
fetchUpdate func(lnwire.ShortChannelID) (*lnwire.ChannelUpdate, error)
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ type htlcPacket struct {
|
||||
incomingTimeout uint32
|
||||
|
||||
// outgoingTimeout is the timeout of the proposed outgoing HTLC. This
|
||||
// will be extraced from the hop payload recevived by the incoming
|
||||
// will be extracted from the hop payload received by the incoming
|
||||
// link.
|
||||
outgoingTimeout uint32
|
||||
|
||||
|
||||
@@ -290,7 +290,7 @@ type Switch struct {
|
||||
|
||||
// blockEpochStream is an active block epoch event stream backed by an
|
||||
// active ChainNotifier instance. This will be used to retrieve the
|
||||
// lastest height of the chain.
|
||||
// latest height of the chain.
|
||||
blockEpochStream *chainntnfs.BlockEpochEvent
|
||||
|
||||
// pendingSettleFails is the set of settle/fail entries that we need to
|
||||
|
||||
@@ -1546,7 +1546,7 @@ func TestCheckCircularForward(t *testing.T) {
|
||||
}
|
||||
|
||||
// TestSkipIneligibleLinksMultiHopForward tests that if a multi-hop HTLC comes
|
||||
// along, then we won't attempt to froward it down al ink that isn't yet able
|
||||
// along, then we won't attempt to forward it down al ink that isn't yet able
|
||||
// to forward any HTLC's.
|
||||
func TestSkipIneligibleLinksMultiHopForward(t *testing.T) {
|
||||
tests := []multiHopFwdTest{
|
||||
@@ -1601,7 +1601,7 @@ func TestSkipIneligibleLinksMultiHopForward(t *testing.T) {
|
||||
}
|
||||
|
||||
// testSkipIneligibleLinksMultiHopForward tests that if a multi-hop HTLC comes
|
||||
// along, then we won't attempt to froward it down al ink that isn't yet able
|
||||
// along, then we won't attempt to forward it down al ink that isn't yet able
|
||||
// to forward any HTLC's.
|
||||
func testSkipIneligibleLinksMultiHopForward(t *testing.T,
|
||||
testCase *multiHopFwdTest) {
|
||||
@@ -2563,7 +2563,7 @@ func TestSwitchGetPaymentResult(t *testing.T) {
|
||||
t.Fatalf("unable to store result: %v", err)
|
||||
}
|
||||
|
||||
// The result should be availble.
|
||||
// The result should be available.
|
||||
select {
|
||||
case res, ok := <-resultChan:
|
||||
if !ok {
|
||||
|
||||
Reference in new issue
Block a user