PLEBNET-PLAYGROUND / plebnet-playground-docker

Docker package which allows users to use and test bitcoin and lightning technologies without the financial risk involved with running on the mainnet chain. Multiple GUI interfaces are included.
MIT License
65 stars 16 forks source link

plebnet dashboard with prod graph #137

Open bliotti opened 1 year ago

bliotti commented 1 year ago

Tried replacing prod lnd's describegraph.json in plebnet dashboard visualizer. (This is suggested in readme)

but dashboard logs throws a missing attribute error.

Should it be f['name'] not f.name ?

found graph data: describegraph.json
{'name': 'data-loss-protect', 'is_required': False, 'is_known': True}
Traceback (most recent call last):
  File "dashboard.py", line 444, in <module>
    MG = get_node_multigraph(response)
  File "dashboard.py", line 133, in get_node_multigraph
    last_update=node.last_update)) for node in response.nodes))
  File "/opt/conda/lib/python3.7/site-packages/networkx/classes/digraph.py", line 472, in add_nodes_from
    for n in nodes_for_adding:
  File "dashboard.py", line 133, in <genexpr>
    last_update=node.last_update)) for node in response.nodes))
  File "dashboard.py", line 115, in get_features
    results[k] = dict(name=f.name,
AttributeError: 'dict' object has no attribute 'name'