Merge pull request #8662 from fuyangpengqi/master

chore: fix function names in comment
This commit is contained in:
Oliver Gugger 2024-04-29 15:10:20 +02:00 committed by GitHub
commit 3d56ffd0e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ var (
seed *CipherSeed
)
// BenchmarkFrommnemonic benchmarks the process of converting a cipher seed
// BenchmarkTomnemonic benchmarks the process of converting a cipher seed
// (given the salt), to an enciphered mnemonic.
func BenchmarkTomnemonic(b *testing.B) {
scryptN = 32768

View File

@ -254,7 +254,7 @@ func respondMoreChans(t *testing.T, testCtx *testContext, resp moreChansResp) {
}
}
// respondMoreChans consumes the nodeScoresArgs element and responds to the
// respondNodeScores consumes the nodeScoresArgs element and responds to the
// agent with the given node scores.
func respondNodeScores(t *testing.T, testCtx *testContext,
resp map[NodeID]*NodeScore) {
@ -468,7 +468,7 @@ func TestAgentChannelCloseSignal(t *testing.T) {
}
}
// TestAgentBalanceUpdateIncrease ensures that once the agent receives an
// TestAgentBalanceUpdate ensures that once the agent receives an
// outside signal concerning a balance update, then it will re-query the
// heuristic to determine its next action.
func TestAgentBalanceUpdate(t *testing.T) {

View File

@ -17,7 +17,7 @@ import (
"github.com/lightningnetwork/lnd/tor"
)
// validateAtplConfig is a helper method that makes sure the passed
// validateAtplCfg is a helper method that makes sure the passed
// configuration is sane. Currently it checks that the heuristic configuration
// makes sense. In case the config is valid, it will return a list of
// WeightedHeuristics that can be combined for use with the autopilot agent.

View File

@ -1932,7 +1932,7 @@ func newFundingShimAssembler(chanPointShim *lnrpc.ChanPointShim, initiator bool,
), nil
}
// newFundingShimAssembler returns a new fully populated
// newPsbtAssembler returns a new fully populated
// chanfunding.PsbtAssembler using a FundingShim obtained from an RPC caller.
func newPsbtAssembler(req *lnrpc.OpenChannelRequest,
psbtShim *lnrpc.PsbtShim, netParams *chaincfg.Params) (

View File

@ -3503,7 +3503,7 @@ func (s *server) nextPeerBackoff(pubStr string,
return s.cfg.MinBackoff
}
// shouldDropConnection determines if our local connection to a remote peer
// shouldDropLocalConnection determines if our local connection to a remote peer
// should be dropped in the case of concurrent connection establishment. In
// order to deterministically decide which connection should be dropped, we'll
// utilize the ordering of the local and remote public key. If we didn't use