Use payment_secrets in all sends in functional tests
authorMatt Corallo <git@bluematt.me>
Fri, 23 Apr 2021 03:19:52 +0000 (03:19 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Apr 2021 19:30:25 +0000 (15:30 -0400)
commita7082901fe8302d1944cb3365f192626f4dbac22
tree195c71598c5d2502cd1425e92ea217f7ed57b448
parent73a3bb3dca4477d9d9208d0a365bd56017428e3d
Use payment_secrets in all sends in functional tests

This prepares us for requiring payment_secrets for all received
payments, by demonstrating test changes work even prior to the new
requirement.

In order to avoid needing to pipe payment secrets through to
additional places in the claim logic and then removing that
infrastructure once payment secrets are required, we use the new
payment secret storage in ChannelManager to look up the payment
secret for any given pament hash in claim and fail-back functions.
This part of the diff is reverted in the next commit.
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/ln/onion_route_tests.rs