diff --git a/DOCKER.md b/DOCKER.md index bc5c381..e9fa6d8 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -53,7 +53,7 @@ docker exec -it loopd loop out --channel --amt --amt ` is the actual loop command you want to run. All the regular `loop` documentation applies to this bit. diff --git a/executor.go b/executor.go index 1092183..9451b15 100644 --- a/executor.go +++ b/executor.go @@ -154,15 +154,15 @@ func (s *executor) run(mainCtx context.Context, defer s.wg.Done() err := newSwap.execute(mainCtx, &executeConfig{ - statusChan: statusChan, - sweeper: s.sweeper, - blockEpochChan: queue.ChanOut(), - timerFactory: s.executorConfig.createExpiryTimer, - loopOutMaxParts: s.executorConfig.loopOutMaxParts, - totalPaymentTimout: s.executorConfig.totalPaymentTimeout, - maxPaymentRetries: s.executorConfig.maxPaymentRetries, - cancelSwap: s.executorConfig.cancelSwap, - verifySchnorrSig: s.executorConfig.verifySchnorrSig, + statusChan: statusChan, + sweeper: s.sweeper, + blockEpochChan: queue.ChanOut(), + timerFactory: s.executorConfig.createExpiryTimer, + loopOutMaxParts: s.executorConfig.loopOutMaxParts, + totalPaymentTimeout: s.executorConfig.totalPaymentTimeout, + maxPaymentRetries: s.executorConfig.maxPaymentRetries, + cancelSwap: s.executorConfig.cancelSwap, + verifySchnorrSig: s.executorConfig.verifySchnorrSig, }, height) if err != nil && !errors.Is( err, context.Canceled, diff --git a/loopout.go b/loopout.go index f9f372a..f1b1be2 100644 --- a/loopout.go +++ b/loopout.go @@ -89,15 +89,15 @@ type loopOutSwap struct { // executeConfig contains extra configuration to execute the swap. type executeConfig struct { - sweeper *sweep.Sweeper - statusChan chan<- SwapInfo - blockEpochChan <-chan interface{} - timerFactory func(time.Duration) <-chan time.Time - loopOutMaxParts uint32 - totalPaymentTimout time.Duration - maxPaymentRetries int - cancelSwap func(context.Context, *outCancelDetails) error - verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error + sweeper *sweep.Sweeper + statusChan chan<- SwapInfo + blockEpochChan <-chan interface{} + timerFactory func(time.Duration) <-chan time.Time + loopOutMaxParts uint32 + totalPaymentTimeout time.Duration + maxPaymentRetries int + cancelSwap func(context.Context, *outCancelDetails) error + verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error } // loopOutInitResult contains information about a just-initiated loop out swap. @@ -706,7 +706,7 @@ func (s *loopOutSwap) payInvoiceAsync(ctx context.Context, } maxRetries := 1 - paymentTimeout := s.executeConfig.totalPaymentTimout + paymentTimeout := s.executeConfig.totalPaymentTimeout // Attempt to acquire and initialize the routing plugin. routingPlugin, err := AcquireRoutingPlugin( @@ -1189,7 +1189,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmed(globalCtx context.Context, // Attempt to script path sweep. If the // sweep fails, we can't do any better // than go on and try again later as - // the preimage is alredy revealed and + // the preimage is already revealed and // the server settled the swap payment. // From the server's point of view the // swap is succeeded at this point so diff --git a/routing_plugin_test.go b/routing_plugin_test.go index de562f6..3a76868 100644 --- a/routing_plugin_test.go +++ b/routing_plugin_test.go @@ -131,7 +131,7 @@ func TestLowHighRoutingPlugin(t *testing.T) { }, }, { - name: "degenrate network 3", + name: "degenerate network 3", // // _____Bob_____ // / \ diff --git a/swap_server_client.go b/swap_server_client.go index 5ca1141..4a199ce 100644 --- a/swap_server_client.go +++ b/swap_server_client.go @@ -646,7 +646,7 @@ type routeCancelMetadata struct { failureReason lnrpc.PaymentFailureReason } -// outCancelDetails contains the informaton required to cancel a loop out swap. +// outCancelDetails contains the information required to cancel a loop out swap. type outCancelDetails struct { // Hash is the swap's hash. hash lntypes.Hash