diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index eadf3e23..f8c1cf3d 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -1429,7 +1429,13 @@ func drawChannelGraph(graph *lnrpc.ChannelGraph) error { // TODO(roasbeef): should be able to get around this? nodeID := fmt.Sprintf(`"%v"`, truncateStr(node.PubKey, numKeyChars)) - graphCanvas.AddNode(graphName, nodeID, gographviz.Attrs{}) + attrs := gographviz.Attrs{} + + if node.Color != "" { + attrs["color"] = fmt.Sprintf(`"%v"`, node.Color) + } + + graphCanvas.AddNode(graphName, nodeID, attrs) } normalize := normalizeFunc(graph.Edges, 3)