multi: use mutex-guarded ShortChanID() on OpenChannel

This commit is contained in:
Conner Fromknecht committed 2018-05-09 16:06:49 -07:00
1 parent 19b5eaa4dc
commit f963f91a3c
13 files changed
+31 -31

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ func initAutoPilot(svr *server, cfg *autoPilotConfig) (*autopilot.Agent, error)
initialChanState := make([]autopilot.Channel, len(activeChannels))
for i, channel := range activeChannels {
initialChanState[i] = autopilot.Channel{
ChanID: channel.ShortChanID,
ChanID: channel.ShortChanID(),
Capacity: channel.Capacity,
Node: autopilot.NewNodeID(channel.IdentityPub),
}