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
@@ -2306,7 +2306,7 @@ func (r *rpcServer) AddInvoice(ctx context.Context,
}
// Fetch the policies for each end of the channel.
chanID := channel.ShortChanID.ToUint64()
chanID := channel.ShortChanID().ToUint64()
_, p1, p2, err := graph.FetchChannelEdgesByID(chanID)
if err != nil {
rpcsLog.Errorf("Unable to fetch the routing "+