chore: fix function names in comment

Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
fuyangpengqi 2024-04-18 20:58:15 +08:00
parent 2ccf58e2af
commit 5f22d97b51
5 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ var (
seed *CipherSeed 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. // (given the salt), to an enciphered mnemonic.
func BenchmarkTomnemonic(b *testing.B) { func BenchmarkTomnemonic(b *testing.B) {
scryptN = 32768 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. // agent with the given node scores.
func respondNodeScores(t *testing.T, testCtx *testContext, func respondNodeScores(t *testing.T, testCtx *testContext,
resp map[NodeID]*NodeScore) { 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 // outside signal concerning a balance update, then it will re-query the
// heuristic to determine its next action. // heuristic to determine its next action.
func TestAgentBalanceUpdate(t *testing.T) { func TestAgentBalanceUpdate(t *testing.T) {

View File

@ -17,7 +17,7 @@ import (
"github.com/lightningnetwork/lnd/tor" "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 // configuration is sane. Currently it checks that the heuristic configuration
// makes sense. In case the config is valid, it will return a list of // 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. // WeightedHeuristics that can be combined for use with the autopilot agent.

View File

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

View File

@ -3469,7 +3469,7 @@ func (s *server) nextPeerBackoff(pubStr string,
return s.cfg.MinBackoff 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 // should be dropped in the case of concurrent connection establishment. In
// order to deterministically decide which connection should be dropped, we'll // 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 // utilize the ordering of the local and remote public key. If we didn't use