-
When operating an LND node with Tor, I have always been curious about the ping time units reported by the various interfaces (for example lncli and RTL). Typical times reported vary from 200000 to over 1000000+. Does anyone know the units for the ping_time results observed in the "lncli listpeers" command? It appears that most other status items have a unit of measure associated with them except for ping_time. It might make sense that they are in microseconds... 200000 = 200ms or 0.2s. Can anyone confirm this? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's indeed in microseconds: https://github.com/lightningnetwork/lnd/blob/master/peer/brontide.go#L358 |
Beta Was this translation helpful? Give feedback.
It's indeed in microseconds: https://github.com/lightningnetwork/lnd/blob/master/peer/brontide.go#L358
This should probably be documented in the API docs here: https://github.com/lightningnetwork/lnd/blob/master/lnrpc/lightning.proto#L1614