Give users who use `get_payment_secret_preimage` the PaymentPreimage
authorMatt Corallo <git@bluematt.me>
Fri, 23 Apr 2021 22:24:47 +0000 (22:24 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Apr 2021 19:30:25 +0000 (15:30 -0400)
commit3b8ac139ba4dc97ee02feb9a8b0787827bff4e11
treeccf4ca58b2243086f09f9920be8a427cf8cbbfa2
parentecaeddca475da5fab427bed5a7bed64ef9f9d216
Give users who use `get_payment_secret_preimage` the PaymentPreimage

For users who get PaymentPreimages via
`get_payment_secret_preimage`, they need to provide the
PaymentPreimage back in `claim_funds` but they aren't actually
given the preimage anywhere.

This commit gives users the PaymentPreimage in the
`PaymentReceived` event.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/events.rs