lnd+routing+rpc: switch mc to (external) estimator

We use a more general `Estimator` interface for probability estimation
in missioncontrol.

The estimator is created outside of `NewMissionControl`, passed in as a
`MissionControlConfig` field, to facilitate usage of externally supplied
estimators.
This commit is contained in:
bitromortac committed 2023-02-14 13:34:25 +01:00
1 parent 686816d784
commit 16986ee5c7
8 files changed
+96 -64

No files matched your search

+3
View File
@@ -465,6 +465,9 @@ type Config struct {
// ActiveNetParams contains parameters of the target chain.
ActiveNetParams chainreg.BitcoinNetParams
// Estimator is used to estimate routing probabilities.
Estimator routing.Estimator
}
// DefaultConfig returns all default values for the Config struct.