autopilot/interface: add Name() to AttachmentHeuristic interface

This commit is contained in:
Johan T. Halseth committed 2019-01-23 09:05:42 +01:00
1 parent cebc4d8dba
commit c0fed861d2
4 files changed
+21

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ type directiveArg struct {
nodes map[NodeID]struct{}
}
func (m *mockHeuristic) Name() string {
return "mock"
}
func (m *mockHeuristic) NodeScores(g ChannelGraph, chans []Channel,
fundsAvailable btcutil.Amount, nodes map[NodeID]struct{}) (
map[NodeID]*NodeScore, error) {