Skip to content

Commit

Permalink
Merge pull request #942 from jiangmencity/master
Browse files Browse the repository at this point in the history
chore: fix some typos in comment
  • Loading branch information
guggero authored Jan 20, 2025
2 parents edaf59d + fb9d3f5 commit a87d200
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions itest/litd_firewall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ func testChannelOpening(net *NetworkHarness, ht *harnessTest, t *testing.T) {
)
require.NoError(t, err)

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

// The channel open response's txid is to be interpreted as a
// byte reveresed hash, which is used to check that the channel
// byte reversed hash, which is used to check that the channel
// is present.
txHashHidden, err := chainhash.NewHash(txIdHidden)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion rules/onchain_budget.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ func (o *OnChainBudgetEnforcer) checkFeeRate(satPerVByte uint64) error {
}

// formatReqId creates a unique identifier for the request that can be used to
// associate the action accross request-response handling.
// associate the action across request-response handling.
func formatReqId(lndConnID string, reqID int64) string {
return fmt.Sprintf("%s-%s-%d", memoPrefix, lndConnID, reqID)
}
Expand Down
2 changes: 1 addition & 1 deletion rules/onchain_budget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ func TestHandleMemoResponse(t *testing.T) {
}
}

// TestRemoveMemo tests that request identifiers are correcly removed from the
// TestRemoveMemo tests that request identifiers are correctly removed from the
// memo string.
func TestRemoveMemo(t *testing.T) {
tests := []struct {
Expand Down

0 comments on commit a87d200

Please sign in to comment.