Merge pull request #4668 from Empact/patch-2

[autopilot] change default heuristic to top_centrality
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2020-10-07 16:48:12 -07:00
commit 6493a43c9d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -395,7 +395,7 @@ func DefaultConfig() Config {
MinConfs: 1, MinConfs: 1,
ConfTarget: autopilot.DefaultConfTarget, ConfTarget: autopilot.DefaultConfTarget,
Heuristic: map[string]float64{ Heuristic: map[string]float64{
"preferential": 1.0, "top_centrality": 1.0,
}, },
}, },
PaymentsExpirationGracePeriod: defaultPaymentsExpirationGracePeriod, PaymentsExpirationGracePeriod: defaultPaymentsExpirationGracePeriod,
+2 -2
View File
@@ -477,8 +477,8 @@ litecoin.node=ltcd
; autopilot.allocation=0.6 ; autopilot.allocation=0.6
; Heuristic to activate, and the weight to give it during scoring. (default: ; Heuristic to activate, and the weight to give it during scoring. (default:
; {preferential:1}) ; top_centrality:1)
; autopilot.heuristic={topk_centrality:1} ; autopilot.heuristic=preferential:1
; The smallest channel that the autopilot agent should create (default: 20000) ; The smallest channel that the autopilot agent should create (default: 20000)
; autopilot.minchansize=20000 ; autopilot.minchansize=20000