Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodeinfo fails to load/partially loads #55

Open
ExperiBass opened this issue Jul 9, 2023 · 0 comments
Open

Nodeinfo fails to load/partially loads #55

ExperiBass opened this issue Jul 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ExperiBass
Copy link

ExperiBass commented Jul 9, 2023

Describe the bug
Most of the time, the DescribeGraphResponse.nodes response ends up being filled with null values instead of the proper node info.

Environment (please complete the following information):

To Reproduce
Steps to reproduce the behavior:

  1. Start LNDash.
  2. Navigate to dashboard.
  3. Behold, Unknown Node

Screenshots or Log Output

Additional context
A workaround i found was checking if DescribeGraphResponse.nodes and DescribeGraphResponse.nodes[0] were null. It feels like a patch over the root issue though, cause the last response i captured has only .nodes[0] populated.

lncli returned the graph just fine.

{
    "nodes": [
        {
            "channels": [],
            "node": {
                "addresses": [
                    {
                        "network": "tcp",
                        "addr": "z4hqwq2bzs55odfo5ni52trfflg5ux2waxl73cw7tvmzwgxxr2dwcvyd.onion:9736"
                    },
                    {
                        "network": "tcp",
                        "addr": "85.216.202.47:9735"
                    }
                ],
                "features": {
                    "0": {
                        "name": "data-loss-protect",
                        "is_required": true,
                        "is_known": true
                    },
                    "5": {
                        "name": "upfront-shutdown-script",
                        "is_required": false,
                        "is_known": true
                    },
                    // etc, etc, super shiny
                },
                "custom_records": {},
                "last_update": 1901300000,
                "pub_key": "03a6680e79e30f050d4f32f1fb9d046cc6efb5ed4cc99eeedba6b2e89cbf838691",
                "alias": "BleskomatDecentruck",
                "color": "#000000"
            },
            "num_channels": 58,
            "total_capacity": "85827105"
        },
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        // you get the point, right?
    ]
}
@ExperiBass ExperiBass added the bug Something isn't working label Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant