]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid persisting on same counterparty's ChannelUpdate
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 28 Sep 2023 23:02:25 +0000 (16:02 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 16:01:46 +0000 (09:01 -0700)
commitc8c535412dab31ca88866fc54ab472458494adb5
tree1b37d5dc4b1e785e3abb7d67ee566b6b5bae19ab
parent082a19b2d4f859ed8377ade2c42db6287901b8f4
Avoid persisting on same counterparty's ChannelUpdate

Some nodes may rebroadcast their `ChannelUpdate` to their counterparty
on every connection establishment, which leads to us doing an additional
persist most of the time when nothing has changed. Now, we'll only
persist if we receive an update that changes anything.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs