mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
Merge pull request #8662 from fuyangpengqi/master
chore: fix function names in comment
This commit is contained in:
commit
3d56ffd0e4
@ -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
|
||||||
|
@ -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) {
|
||||||
|
2
pilot.go
2
pilot.go
@ -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.
|
||||||
|
@ -1932,7 +1932,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,
|
func newPsbtAssembler(req *lnrpc.OpenChannelRequest,
|
||||||
psbtShim *lnrpc.PsbtShim, netParams *chaincfg.Params) (
|
psbtShim *lnrpc.PsbtShim, netParams *chaincfg.Params) (
|
||||||
|
@ -3503,7 +3503,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
|
||||||
|
Loading…
Reference in New Issue
Block a user