painless-security / trust-router

Moonshot Trust Router
0 stars 0 forks source link

"show peers" returning an empty list #83

Closed jennifer-richards closed 6 years ago

jennifer-richards commented 6 years ago

Whether peers are connected or not, the "show peers" command is currently returning an empty list:

$ tr/trmon >>REDACTED_HOSTNAME<< 1234 show peers
gss_connect: Connecting to host '>>REDACTED_HOSTNAME<<' on port 1234
{
    "code": 0,
    "message": "success",
    "payload": {
        "peers": []
    }
}
jennifer-richards commented 6 years ago

Made an error refactoring the monitoring request handler. Fixed by 09c39eeca9a525447435d3e1766a7350c730f0f8.

jennifer-richards commented 6 years ago

Test

Steps

  1. Configure and launch a trust router with at least one peer.
  2. Run trmon $HOST $PORT show peers

Expected results

A non-empty list of peers is returned.

meadmaker commented 6 years ago

I opened up #97 before seeing this issue. I think, however, that I'll leave this issue separate; that issue seems to be triggered by reloading the trustrouter configuration, whereas this one seems to be talking about ever showing the peers at all.

I've seen the peer list plenty of times, so I'm calling this verified.