mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
chore: fix some typos in comment
Signed-off-by: jiangmencity <jiangmen@52it.net>
This commit is contained in:
parent
edaf59d2cc
commit
fb9d3f51f7
3 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue