]> git.bitcoin.ninja Git - rust-lightning/commit
Don't send padding bytes for pings
authorMatt Corallo <git@bluematt.me>
Sat, 15 Feb 2020 03:51:09 +0000 (22:51 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 25 May 2020 19:34:16 +0000 (15:34 -0400)
commitcc6dd456faa878492f8f235b5d1770ca108271a6
tree4e3e4eed0b23e20535884453909d1513e6e131c2
parent676e15910c1a681e5ff2019bc7e53540119ceee5
Don't send padding bytes for pings

We (somewhat needlessly) send an extra 64 bytes with every ping.
While this isn't exactly a big deal, I saw it and figured we
shouldn't waste bytes on the wire given some of the constraints of
potential users.
lightning/src/ln/peer_handler.rs