]> git.bitcoin.ninja Git - rust-lightning/commit
Correct error when a peer opens a channel with a huge push_msat 2022-04-fuzz-underflow
authorMatt Corallo <git@bluematt.me>
Thu, 28 Apr 2022 19:46:22 +0000 (19:46 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Apr 2022 19:46:22 +0000 (19:46 +0000)
commit92c87bae199b666f1f212b2b91accb5712490885
tree635685437ca9f247f4d1925fe0de3379b4089d8c
parent2826af75a5761859dedcddc870de0753ae4ecde4
Correct error when a peer opens a channel with a huge push_msat

The calculation uses the reserve, so we should mention it in the
error we send to our peers.
lightning/src/ln/channel.rs
lightning/src/ln/functional_tests.rs