mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-12 13:54:31 +01:00
This commit enhances the peer struct slightly be attempting to measure the ping time to the remote node based on when we send a ping message an dhow long it takes for us to receive a pong response. The current method used to measure RTT is rather rough and could be make much more accurate via the usage of an EMA/WMA and also via attempting to measure processing time within the readMessage and writeMessage functions.
52 KiB
52 KiB