Check expected amount in claim_funds
authorAntoine Riard <ariard@student.42.fr>
Thu, 14 Nov 2019 23:50:24 +0000 (18:50 -0500)
committerAntoine Riard <ariard@student.42.fr>
Mon, 18 Nov 2019 22:25:34 +0000 (17:25 -0500)
commit6493efe329ca01fbc5cd3d60479f6dfbd08b0041
treeab353ea94295e63bf4f7048bfafc995454b9074b
parentae0ad19db5b6492c6188603c22aae59f366d4f64
Check expected amount in claim_funds

Require to specify expected amount so that we can claim only
payment for thhe correct amount, and reject payments for incorrect
amounts (which are probably middle nodes probing to break our privacy).

Send back incorrect_or_unknown_payments_details (PERM|15) to avoid
the probe node learning that final node is waiting a payment with
the routed hash.
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