Skip to content

Commit 852a8d8

Browse files
committed
chore: fix typo
1 parent a388c1f commit 852a8d8

11 files changed

+21
-21
lines changed

build/sub_logger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
// SubLogCreator can be used to create a new logger for a particular subsystem.
1313
type SubLogCreator interface {
14-
// Logger returns a new logger for a particular subsytem.
14+
// Logger returns a new logger for a particular subsystem.
1515
Logger(subsystemTag string) btclog.Logger
1616
}
1717

chainio/consumer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func TestProcessBlockConsumerQuitAfterSend(t *testing.T) {
121121
require.Equal(t, mockBeat, beat)
122122

123123
// Instead of sending nil to the consumer's error channel, close the
124-
// quit chanel.
124+
// quit channel.
125125
close(quitChan)
126126

127127
// Assert ProcessBlock returned nil.

chainio/dispatcher_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestDispatchSequential(t *testing.T) {
120120
// prevConsumer specifies the previous consumer that was called.
121121
var prevConsumer string
122122

123-
// Mock the ProcessBlock on consumers to reutrn immediately.
123+
// Mock the ProcessBlock on consumers to return immediately.
124124
consumer1.On("ProcessBlock", mockBeat).Return(nil).Run(
125125
func(args mock.Arguments) {
126126
// Check the order of the consumers.
@@ -260,7 +260,7 @@ func TestDispatchBlocks(t *testing.T) {
260260
b.RegisterQueue([]Consumer{consumer})
261261

262262
// Mock the consumer to return nil error on ProcessBlock. This
263-
// implictly asserts that the step `notifyQueues` is successfully
263+
// implicitly asserts that the step `notifyQueues` is successfully
264264
// reached in the `dispatchBlocks` method.
265265
consumer.On("ProcessBlock", mock.Anything).Return(nil).Once()
266266

chainntnfs/bitcoindnotify/bitcoind.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ out:
491491
func (b *BitcoindNotifier) handleRelevantTx(tx *btcutil.Tx,
492492
mempool bool, height uint32) {
493493

494-
// If this is a mempool spend, we'll ask the mempool notifier to hanlde
494+
// If this is a mempool spend, we'll ask the mempool notifier to handle
495495
// it.
496496
if mempool {
497497
err := b.memNotifier.ProcessRelevantSpendTx(tx)

chainntnfs/btcdnotify/btcd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ out:
539539
func (b *BtcdNotifier) handleRelevantTx(tx *btcutil.Tx,
540540
mempool bool, height uint32) {
541541

542-
// If this is a mempool spend, we'll ask the mempool notifier to hanlde
542+
// If this is a mempool spend, we'll ask the mempool notifier to handle
543543
// it.
544544
if mempool {
545545
err := b.memNotifier.ProcessRelevantSpendTx(tx)

channeldb/revocation_log_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ func TestPutRevocationLog(t *testing.T) {
565565
},
566566
{
567567
// Test dust htlc is not saved.
568-
name: "dust htlc not saved with amout data",
568+
name: "dust htlc not saved with amount data",
569569
commit: testCommitDust,
570570
ourIndex: 0,
571571
theirIndex: 1,

contractcourt/breach_arbitrator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ func NewRetributionStore(db kvdb.Backend) *RetributionStore {
17191719
}
17201720

17211721
// taprootBriefcaseFromRetInfo creates a taprootBriefcase from a retribution
1722-
// info struct. This stores all the tap tweak informatoin we need to inrder to
1722+
// info struct. This stores all the tap tweak information we need to inrder to
17231723
// be able to hadnel breaches after a restart.
17241724
func taprootBriefcaseFromRetInfo(retInfo *retributionInfo) *taprootBriefcase {
17251725
tapCase := newTaprootBriefcase()
@@ -1776,7 +1776,7 @@ func taprootBriefcaseFromRetInfo(retInfo *retributionInfo) *taprootBriefcase {
17761776
return tapCase
17771777
}
17781778

1779-
// applyTaprootRetInfo attaches the taproot specific inforamtion in the tapCase
1779+
// applyTaprootRetInfo attaches the taproot specific information in the tapCase
17801780
// to the passed retInfo struct.
17811781
func applyTaprootRetInfo(tapCase *taprootBriefcase,
17821782
retInfo *retributionInfo) error {

contractcourt/htlc_timeout_resolver.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ func (h *htlcTimeoutResolver) Resolve() (ContractResolver, error) {
444444
}
445445

446446
// sweepTimeoutTx sends a second level timeout transaction to the sweeper.
447-
// This transaction uses the SINLGE|ANYONECANPAY flag.
447+
// This transaction uses the SINGLE|ANYONECANPAY flag.
448448
func (h *htlcTimeoutResolver) sweepTimeoutTx() error {
449449
var inp input.Input
450450
if h.isTaproot() {
@@ -1070,7 +1070,7 @@ func (h *htlcTimeoutResolver) sweepTimeoutTxOutput() error {
10701070

10711071
// TODO(yy): use the result chan returned from SweepInput to get the
10721072
// confirmation status of this sweeping tx so we don't need to make
1073-
// anothe subscription via `RegisterSpendNtfn` for this outpoint here
1073+
// another subscription via `RegisterSpendNtfn` for this outpoint here
10741074
// in the resolver.
10751075
_, err = h.Sweeper.SweepInput(
10761076
inp,

discovery/gossiper_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2709,7 +2709,7 @@ func assertBroadcast(t *testing.T, ctx *testCtx, num int) []lnwire.Message {
27092709
return msgs
27102710
}
27112711

2712-
// assertProcessAnnouncemnt is a helper method that checks that the result of
2712+
// assertProcessAnnouncement is a helper method that checks that the result of
27132713
// processing an announcement is successful.
27142714
func assertProcessAnnouncement(t *testing.T, result chan error) {
27152715
t.Helper()

docs/code_contribution_guidelines.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Examples of common patterns w.r.t commit structures within the project:
337337
small scale, fix typos, or any changes that do not modify the code, the
338338
commit message of the HEAD commit of the PR should end with `[skip ci]` to
339339
skip the CI checks. When pushing to such an existing PR, the latest commit
340-
being pushed should end with `[skip ci]` as to not inadvertantly trigger the
340+
being pushed should end with `[skip ci]` as to not inadvertently trigger the
341341
CI checks.
342342
343343
## Sign your git commits

itest/lnd_switch_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func testSwitchCircuitPersistence(ht *lntest.HarnessTest) {
6464
// transaction, in channel Bob->Alice->David->Carol, order is Carol,
6565
// David, Alice, Bob.
6666
var amountPaid = int64(5000)
67-
s.assertAmoutPaid(ht, amountPaid, numPayments)
67+
s.assertAmountPaid(ht, amountPaid, numPayments)
6868

6969
// Lastly, we will send one more payment to ensure all channels are
7070
// still functioning properly.
@@ -80,7 +80,7 @@ func testSwitchCircuitPersistence(ht *lntest.HarnessTest) {
8080
ht.CompletePaymentRequests(s.bob, payReqs)
8181

8282
amountPaid = int64(6000)
83-
s.assertAmoutPaid(ht, amountPaid, numPayments+1)
83+
s.assertAmountPaid(ht, amountPaid, numPayments+1)
8484
}
8585

8686
// testSwitchOfflineDelivery constructs a set of multihop payments, and tests
@@ -136,7 +136,7 @@ func testSwitchOfflineDelivery(ht *lntest.HarnessTest) {
136136
// transaction, in channel Bob->Alice->David->Carol, order is Carol,
137137
// David, Alice, Bob.
138138
var amountPaid = int64(5000)
139-
s.assertAmoutPaid(ht, amountPaid, numPayments)
139+
s.assertAmountPaid(ht, amountPaid, numPayments)
140140

141141
// Lastly, we will send one more payment to ensure all channels are
142142
// still functioning properly.
@@ -152,7 +152,7 @@ func testSwitchOfflineDelivery(ht *lntest.HarnessTest) {
152152
ht.CompletePaymentRequests(s.bob, payReqs)
153153

154154
amountPaid = int64(6000)
155-
s.assertAmoutPaid(ht, amountPaid, numPayments+1)
155+
s.assertAmountPaid(ht, amountPaid, numPayments+1)
156156
}
157157

158158
// testSwitchOfflineDeliveryPersistence constructs a set of multihop payments,
@@ -218,7 +218,7 @@ func testSwitchOfflineDeliveryPersistence(ht *lntest.HarnessTest) {
218218
// transaction, in channel Bob->Alice->David->Carol, order is Carol,
219219
// David, Alice, Bob.
220220
var amountPaid = int64(5000)
221-
s.assertAmoutPaid(ht, amountPaid, numPayments)
221+
s.assertAmountPaid(ht, amountPaid, numPayments)
222222

223223
// Lastly, we will send one more payment to ensure all channels are
224224
// still functioning properly.
@@ -238,7 +238,7 @@ func testSwitchOfflineDeliveryPersistence(ht *lntest.HarnessTest) {
238238
ht.CompletePaymentRequests(s.bob, payReqs)
239239

240240
amountPaid = int64(6000)
241-
s.assertAmoutPaid(ht, amountPaid, numPayments+1)
241+
s.assertAmountPaid(ht, amountPaid, numPayments+1)
242242
}
243243

244244
// testSwitchOfflineDeliveryOutgoingOffline constructs a set of multihop
@@ -453,10 +453,10 @@ func (s *scenarioFourNodes) assertHTLCs(ht *lntest.HarnessTest, num int) {
453453
ht.AssertNumActiveHtlcs(s.carol, num)
454454
}
455455

456-
// assertAmoutPaid is a helper method which takes a given paid amount
456+
// assertAmountPaid is a helper method which takes a given paid amount
457457
// and number of payments and asserts the desired payments are made in
458458
// the four nodes.
459-
func (s *scenarioFourNodes) assertAmoutPaid(ht *lntest.HarnessTest,
459+
func (s *scenarioFourNodes) assertAmountPaid(ht *lntest.HarnessTest,
460460
amt int64, num int64) {
461461

462462
ht.AssertAmountPaid(

0 commit comments

Comments
 (0)