multi: fee estimation timeout parameters
conf: fee estimation timeout in sample config
This commit is contained in:
4 files changed
+13
No files matched your search
@@ -69,6 +69,7 @@ func DefaultConfig() *Config {
|
||||
NodeWeight: routing.DefaultBimodalNodeWeight,
|
||||
DecayTime: routing.DefaultBimodalDecayTime,
|
||||
},
|
||||
FeeEstimationTimeout: routing.DefaultFeeEstimationTimeout,
|
||||
}
|
||||
|
||||
return &Config{
|
||||
@@ -96,5 +97,6 @@ func GetRoutingConfig(cfg *Config) *RoutingConfig {
|
||||
NodeWeight: cfg.BimodalConfig.NodeWeight,
|
||||
DecayTime: cfg.BimodalConfig.DecayTime,
|
||||
},
|
||||
FeeEstimationTimeout: cfg.FeeEstimationTimeout,
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,9 @@ type RoutingConfig struct {
|
||||
|
||||
// BimodalConfig defines parameters for the bimodal probability.
|
||||
BimodalConfig *BimodalConfig `group:"bimodal" namespace:"bimodal" description:"configuration for the bimodal pathfinding probability estimator"`
|
||||
|
||||
// FeeEstimationTimeout is the maximum time to wait for routing fees to be estimated.
|
||||
FeeEstimationTimeout time.Duration `long:"fee-estimation-timeout" description:"the maximum time to wait for routing fees to be estimated by payment probes"`
|
||||
}
|
||||
|
||||
// AprioriConfig defines parameters for the apriori probability.
|
||||
|
||||
Reference in new issue
Block a user