chore: fix typos

pull/669/head
GoodDaisy 5 months ago
parent 3743a49f27
commit e45101cccd

@ -53,7 +53,7 @@ docker exec -it loopd loop out --channel <channel-id-you-want-to-use> --amt <amo
Things to note about this docker command: Things to note about this docker command:
* `docker exec` runs a command on an already-running container. In this case `docker exec loopd` says effectively 'run the rest of this command-line as a command on the already-running container 'loopd'. * `docker exec` runs a command on an already-running container. In this case `docker exec loopd` says effectively 'run the rest of this command-line as a command on the already-running container 'loopd'.
* The `-it` flags tell docker to run the command interatively and act like it's using a terminal. This helps with commands that do more than just write to stdout. * The `-it` flags tell docker to run the command interactively and act like it's using a terminal. This helps with commands that do more than just write to stdout.
* The remainder `loop out --channel <channel-id-you-want-to-use> --amt <amount-you-want-to-loop-out>` is the actual loop command you want to run. All the regular `loop` documentation applies to this bit. * The remainder `loop out --channel <channel-id-you-want-to-use> --amt <amount-you-want-to-loop-out>` is the actual loop command you want to run. All the regular `loop` documentation applies to this bit.

@ -154,15 +154,15 @@ func (s *executor) run(mainCtx context.Context,
defer s.wg.Done() defer s.wg.Done()
err := newSwap.execute(mainCtx, &executeConfig{ err := newSwap.execute(mainCtx, &executeConfig{
statusChan: statusChan, statusChan: statusChan,
sweeper: s.sweeper, sweeper: s.sweeper,
blockEpochChan: queue.ChanOut(), blockEpochChan: queue.ChanOut(),
timerFactory: s.executorConfig.createExpiryTimer, timerFactory: s.executorConfig.createExpiryTimer,
loopOutMaxParts: s.executorConfig.loopOutMaxParts, loopOutMaxParts: s.executorConfig.loopOutMaxParts,
totalPaymentTimout: s.executorConfig.totalPaymentTimeout, totalPaymentTimeout: s.executorConfig.totalPaymentTimeout,
maxPaymentRetries: s.executorConfig.maxPaymentRetries, maxPaymentRetries: s.executorConfig.maxPaymentRetries,
cancelSwap: s.executorConfig.cancelSwap, cancelSwap: s.executorConfig.cancelSwap,
verifySchnorrSig: s.executorConfig.verifySchnorrSig, verifySchnorrSig: s.executorConfig.verifySchnorrSig,
}, height) }, height)
if err != nil && !errors.Is( if err != nil && !errors.Is(
err, context.Canceled, err, context.Canceled,

@ -89,15 +89,15 @@ type loopOutSwap struct {
// executeConfig contains extra configuration to execute the swap. // executeConfig contains extra configuration to execute the swap.
type executeConfig struct { type executeConfig struct {
sweeper *sweep.Sweeper sweeper *sweep.Sweeper
statusChan chan<- SwapInfo statusChan chan<- SwapInfo
blockEpochChan <-chan interface{} blockEpochChan <-chan interface{}
timerFactory func(time.Duration) <-chan time.Time timerFactory func(time.Duration) <-chan time.Time
loopOutMaxParts uint32 loopOutMaxParts uint32
totalPaymentTimout time.Duration totalPaymentTimeout time.Duration
maxPaymentRetries int maxPaymentRetries int
cancelSwap func(context.Context, *outCancelDetails) error cancelSwap func(context.Context, *outCancelDetails) error
verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error verifySchnorrSig func(pubKey *btcec.PublicKey, hash, sig []byte) error
} }
// loopOutInitResult contains information about a just-initiated loop out swap. // loopOutInitResult contains information about a just-initiated loop out swap.
@ -706,7 +706,7 @@ func (s *loopOutSwap) payInvoiceAsync(ctx context.Context,
} }
maxRetries := 1 maxRetries := 1
paymentTimeout := s.executeConfig.totalPaymentTimout paymentTimeout := s.executeConfig.totalPaymentTimeout
// Attempt to acquire and initialize the routing plugin. // Attempt to acquire and initialize the routing plugin.
routingPlugin, err := AcquireRoutingPlugin( routingPlugin, err := AcquireRoutingPlugin(
@ -1189,7 +1189,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmed(globalCtx context.Context,
// Attempt to script path sweep. If the // Attempt to script path sweep. If the
// sweep fails, we can't do any better // sweep fails, we can't do any better
// than go on and try again later as // 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. // the server settled the swap payment.
// From the server's point of view the // From the server's point of view the
// swap is succeeded at this point so // swap is succeeded at this point so

@ -131,7 +131,7 @@ func TestLowHighRoutingPlugin(t *testing.T) {
}, },
}, },
{ {
name: "degenrate network 3", name: "degenerate network 3",
// //
// _____Bob_____ // _____Bob_____
// / \ // / \

@ -646,7 +646,7 @@ type routeCancelMetadata struct {
failureReason lnrpc.PaymentFailureReason 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 { type outCancelDetails struct {
// Hash is the swap's hash. // Hash is the swap's hash.
hash lntypes.Hash hash lntypes.Hash

Loading…
Cancel
Save