Skip to content

Commit fb9d3f5

Browse files
committed
chore: fix some typos in comment
Signed-off-by: jiangmencity <jiangmen@52it.net>
1 parent edaf59d commit fb9d3f5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

itest/litd_firewall_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ func testChannelOpening(net *NetworkHarness, ht *harnessTest, t *testing.T) {
11251125
)
11261126
require.NoError(t, err)
11271127

1128-
// lastMemo is used to check that the memo field is unique accross
1128+
// lastMemo is used to check that the memo field is unique across
11291129
// different channel opens.
11301130
var lastMemo string
11311131
assertChannelExistsAndClose := func(txIdHidden []byte,
@@ -1135,7 +1135,7 @@ func testChannelOpening(net *NetworkHarness, ht *harnessTest, t *testing.T) {
11351135
net.Miner.MineBlocks(6)
11361136

11371137
// The channel open response's txid is to be interpreted as a
1138-
// byte reveresed hash, which is used to check that the channel
1138+
// byte reversed hash, which is used to check that the channel
11391139
// is present.
11401140
txHashHidden, err := chainhash.NewHash(txIdHidden)
11411141
require.NoError(t, err)

rules/onchain_budget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (o *OnChainBudgetEnforcer) checkFeeRate(satPerVByte uint64) error {
390390
}
391391

392392
// formatReqId creates a unique identifier for the request that can be used to
393-
// associate the action accross request-response handling.
393+
// associate the action across request-response handling.
394394
func formatReqId(lndConnID string, reqID int64) string {
395395
return fmt.Sprintf("%s-%s-%d", memoPrefix, lndConnID, reqID)
396396
}

rules/onchain_budget_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ func TestHandleMemoResponse(t *testing.T) {
442442
}
443443
}
444444

445-
// TestRemoveMemo tests that request identifiers are correcly removed from the
445+
// TestRemoveMemo tests that request identifiers are correctly removed from the
446446
// memo string.
447447
func TestRemoveMemo(t *testing.T) {
448448
tests := []struct {

0 commit comments

Comments
 (0)