]> git.bitcoin.ninja Git - rust-lightning/commit
Ignore our own gossip if it is sent to us from our counterparty 2021-06-send-priv-update
authorMatt Corallo <git@bluematt.me>
Wed, 30 Jun 2021 00:27:24 +0000 (00:27 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 7 Jul 2021 19:45:33 +0000 (19:45 +0000)
commitba600db7931d8f87a738ef077db3583554af60cb
treec8a7c2fea8671a55fe18f501d2143a705b312d0d
parent11594c37a13a1b39833c5335e91ac567de147724
Ignore our own gossip if it is sent to us from our counterparty

If our channel party sends us our own channel_update message, we'll
erroneously use the information in that message to update our view
of the forwarding parameters our counterparty requires of us,
ultimately generating invoices with bogus forwarding information.

This fixes that behavior by checking the channel_update's
directionality before handling it.
lightning/src/ln/channelmanager.rs