]> git.bitcoin.ninja Git - rust-lightning/commit
Send back the actual received amount, not expected on HTLC fails 2019-01-back-fail-privacy
authorMatt Corallo <git@bluematt.me>
Tue, 22 Jan 2019 20:49:29 +0000 (15:49 -0500)
committerMatt Corallo <git@bluematt.me>
Thu, 24 Jan 2019 21:55:01 +0000 (16:55 -0500)
commit74588b25192ecb315fd90c6d4f498cfe8d3f5628
treea2ae0fdeaf70cae632e37a300a549ecee4db6b57
parent49d63302c3dd269279489590ca1bb4a939fdece4
Send back the actual received amount, not expected on HTLC fails

This resolves an incorrect implementation of the spec and fixes a
major privacy leak.

Fixes GH #289.
fuzz/fuzz_targets/chanmon_fail_consistency.rs
fuzz/fuzz_targets/full_stack_target.rs
src/ln/chanmon_update_fail_tests.rs
src/ln/channelmanager.rs
src/ln/functional_test_utils.rs
src/ln/functional_tests.rs