mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 18:53:38 +02:00
routing: extract probability estimator cfg and add validation
In preparation for allowing live update of mc config, we extract our probability estimator cfg for easy update and add validation.
This commit is contained in:
@@ -85,9 +85,11 @@ func createTestCtxFromGraphInstance(startingHeight uint32, graphInstance *testGr
|
||||
}
|
||||
|
||||
mcConfig := &MissionControlConfig{
|
||||
PenaltyHalfLife: time.Hour,
|
||||
AprioriHopProbability: 0.9,
|
||||
AprioriWeight: 0.5,
|
||||
ProbabilityEstimatorCfg: ProbabilityEstimatorCfg{
|
||||
PenaltyHalfLife: time.Hour,
|
||||
AprioriHopProbability: 0.9,
|
||||
AprioriWeight: 0.5,
|
||||
},
|
||||
}
|
||||
|
||||
mc, err := NewMissionControl(
|
||||
|
Reference in New Issue
Block a user