From fb9d3f51f78b01224e9c9d850ca8c11fc7e78a19 Mon Sep 17 00:00:00 2001 From: jiangmencity Date: Mon, 20 Jan 2025 19:57:29 +0800 Subject: [PATCH] chore: fix some typos in comment Signed-off-by: jiangmencity --- itest/litd_firewall_test.go | 4 ++-- rules/onchain_budget.go | 2 +- rules/onchain_budget_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/itest/litd_firewall_test.go b/itest/litd_firewall_test.go index ee263b1f4..8037bdeb2 100644 --- a/itest/litd_firewall_test.go +++ b/itest/litd_firewall_test.go @@ -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, @@ -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) diff --git a/rules/onchain_budget.go b/rules/onchain_budget.go index 1024dd08e..e4798cb69 100644 --- a/rules/onchain_budget.go +++ b/rules/onchain_budget.go @@ -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) } diff --git a/rules/onchain_budget_test.go b/rules/onchain_budget_test.go index 0a1823f4f..67f308999 100644 --- a/rules/onchain_budget_test.go +++ b/rules/onchain_budget_test.go @@ -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 {