autopilot: split channel definition into LocalChannel/ChannelEdge
Since non-local channels won't have a balance field, we split the definitions in anticipation of adding one.
This commit is contained in:
14 files changed
+66
-72
No files matched your search
@@ -422,10 +422,10 @@ func TestPrefAttachmentSelectSkipNodes(t *testing.T) {
|
||||
|
||||
// We'll simulate a channel update by adding the nodes
|
||||
// to our set of channels.
|
||||
var chans []Channel
|
||||
var chans []LocalChannel
|
||||
for _, candidate := range scores {
|
||||
chans = append(chans,
|
||||
Channel{
|
||||
LocalChannel{
|
||||
Node: candidate.NodeID,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user