autopilot/interface: add Name() to AttachmentHeuristic interface

This commit is contained in:
Johan T. Halseth
2018-12-19 14:54:54 +01:00
parent cebc4d8dba
commit c0fed861d2
4 changed files with 21 additions and 0 deletions

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) {