autopilot: typo fix
This commit is contained in:
parent
1efef51268
commit
9336b9b3d4
@ -398,7 +398,7 @@ func mergeChanState(pendingChans map[NodeID]LocalChannel,
|
|||||||
// controller implements the closed-loop control system of the Agent. The
|
// controller implements the closed-loop control system of the Agent. The
|
||||||
// controller will make a decision w.r.t channel placement within the graph
|
// controller will make a decision w.r.t channel placement within the graph
|
||||||
// based on: its current internal state of the set of active channels open,
|
// based on: its current internal state of the set of active channels open,
|
||||||
// and external state changes as a result of decisions it makes w.r.t channel
|
// and external state changes as a result of decisions it makes w.r.t channel
|
||||||
// allocation, or attributes affecting its control loop being updated by the
|
// allocation, or attributes affecting its control loop being updated by the
|
||||||
// backing Lightning Node.
|
// backing Lightning Node.
|
||||||
func (a *Agent) controller() {
|
func (a *Agent) controller() {
|
||||||
@ -690,7 +690,7 @@ func (a *Agent) openChans(availableFunds btcutil.Amount, numChans uint32,
|
|||||||
// available to open channels. If there are any, we will attempt
|
// available to open channels. If there are any, we will attempt
|
||||||
// to dispatch the retrieved directives since we can't be
|
// to dispatch the retrieved directives since we can't be
|
||||||
// certain which ones may actually succeed. If too many
|
// certain which ones may actually succeed. If too many
|
||||||
// connections succeed, we will they will be ignored and made
|
// connections succeed, they will be ignored and made
|
||||||
// available to future heuristic selections.
|
// available to future heuristic selections.
|
||||||
a.pendingMtx.Lock()
|
a.pendingMtx.Lock()
|
||||||
defer a.pendingMtx.Unlock()
|
defer a.pendingMtx.Unlock()
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
// limits it will need to stay inside when opening channels.
|
// limits it will need to stay inside when opening channels.
|
||||||
type AgentConstraints interface {
|
type AgentConstraints interface {
|
||||||
// ChannelBudget should, given the passed parameters, return whether
|
// ChannelBudget should, given the passed parameters, return whether
|
||||||
// more channels can be be opened while still staying within the set
|
// more channels can be opened while still staying within the set
|
||||||
// constraints. If the constraints allow us to open more channels, then
|
// constraints. If the constraints allow us to open more channels, then
|
||||||
// the first return value will represent the amount of additional funds
|
// the first return value will represent the amount of additional funds
|
||||||
// available towards creating channels. The second return value is the
|
// available towards creating channels. The second return value is the
|
||||||
@ -39,15 +39,15 @@ type agentConstraints struct {
|
|||||||
// create.
|
// create.
|
||||||
minChanSize btcutil.Amount
|
minChanSize btcutil.Amount
|
||||||
|
|
||||||
// maxChanSize the largest channel that the autopilot agent should
|
// maxChanSize is the largest channel that the autopilot agent should
|
||||||
// create.
|
// create.
|
||||||
maxChanSize btcutil.Amount
|
maxChanSize btcutil.Amount
|
||||||
|
|
||||||
// chanLimit the maximum number of channels that should be created.
|
// chanLimit is the maximum number of channels that should be created.
|
||||||
chanLimit uint16
|
chanLimit uint16
|
||||||
|
|
||||||
// allocation the percentage of total funds that should be committed to
|
// allocation is the percentage of total funds that should be committed
|
||||||
// automatic channel establishment.
|
// to automatic channel establishment.
|
||||||
allocation float64
|
allocation float64
|
||||||
|
|
||||||
// maxPendingOpens is the maximum number of pending channel
|
// maxPendingOpens is the maximum number of pending channel
|
||||||
|
@ -84,7 +84,7 @@ func NewBetweennessCentralityMetric(workers int) (*BetweennessCentrality, error)
|
|||||||
|
|
||||||
// Name returns the name of the metric.
|
// Name returns the name of the metric.
|
||||||
func (bc *BetweennessCentrality) Name() string {
|
func (bc *BetweennessCentrality) Name() string {
|
||||||
return "betweeness_centrality"
|
return "betweenness_centrality"
|
||||||
}
|
}
|
||||||
|
|
||||||
// betweennessCentrality is the core of Brandes' algorithm.
|
// betweennessCentrality is the core of Brandes' algorithm.
|
||||||
|
@ -14,7 +14,7 @@ import (
|
|||||||
// are opened.
|
// are opened.
|
||||||
const DefaultConfTarget = 3
|
const DefaultConfTarget = 3
|
||||||
|
|
||||||
// Node node is an interface which represents n abstract vertex within the
|
// Node is an interface which represents n abstract vertex within the
|
||||||
// channel graph. All nodes should have at least a single edge to/from them
|
// channel graph. All nodes should have at least a single edge to/from them
|
||||||
// within the graph.
|
// within the graph.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user