Skip to content

Commit 10c2d3d

Browse files
committed
Explicitly set pub_key as graphml property
1 parent 1bb85a3 commit 10c2d3d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

graph.go

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func (g *Graph) setupDataAttrs() {
127127
for _, node := range g.Nodes {
128128
node.Attrs = []Data{
129129
//Data{Key: "last_update", Value: node.LastUpdate},
130+
Data{Key: "pub_key", Value: node.PubKey},
130131
Data{Key: "name", Value: node.Alias},
131132
//Data{Key: "color", Value: node.Color},
132133
}

toxml.go

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func main() {
6262
os.Exit(1)
6363
}
6464
keys := []Key{
65+
Key{Id: "pub_key", For: "node", Name: "pub_key", Type: "string"},
6566
Key{Id: "name", For: "node", Name: "name", Type: "string"},
6667

6768
Key{Id: "chan_point", For: "edge", Name: "chan_point", Type: "string"},

0 commit comments

Comments
 (0)