]> git.bitcoin.ninja Git - rust-lightning/commit
Pipe through PaymentSecrets in tests during payment hash creation
authorMatt Corallo <git@bluematt.me>
Thu, 22 Apr 2021 22:45:14 +0000 (22:45 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Apr 2021 19:30:25 +0000 (15:30 -0400)
commit6e5cf5e8d4c51d16dea27910c41fa17879724dee
tree2a0baf6e166d52e6455f5d1ab71e90d184554001
parent7d8dc7ac1a05606e6422e0b4126b95717adc075d
Pipe through PaymentSecrets in tests during payment hash creation

In order to reduce code movement in the next commit, this commit
simply tweaks get_payment_preimage_hash!() and related functions in
functional tests to return a payment secret. Further, we ensure
that we always call get_payment_preimage_hash!() with the node
which will ultimately receive the payment.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/reorg_tests.rs