lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.63k stars 2.07k forks source link

[bug]: Ping time is not accurate #8725

Open alexbosworth opened 4 months ago

alexbosworth commented 4 months ago

Background

When calling ListPeers API, the list peer response returns an inaccurate ping time for a peer

Your environment

Steps to reproduce

Expected behavior

Actual behavior

bitromortac commented 4 months ago

This is a default value for situations where a ping time wasn't measured:

https://github.com/lightningnetwork/lnd/commit/99226e37efc7c0b72f53c66d0e35a7799d1f6ab0#diff-1b1c0e1c6693b8d2fba799853f952e05a33461e8127c1b876a1d95a8f7da0c79R247-R256

Previously this would have been 0, I think.