]> git.bitcoin.ninja Git - rust-lightning/commit
Add a `user_payment_id` to `get_payment_secret`+`PaymentReceived`
authorMatt Corallo <git@bluematt.me>
Tue, 27 Apr 2021 01:29:39 +0000 (01:29 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Apr 2021 19:30:25 +0000 (15:30 -0400)
commit210b887d7c31a2a6e1c9a770218a99155eb18ab7
tree79ed05b9835c7988edd06306fd0c4baf73ed9c61
parent25e4f3e46ed4d0221e41d34ccbaa82adc87421a2
Add a `user_payment_id` to `get_payment_secret`+`PaymentReceived`

This allows users to store metadata about an invoice at
invoice-generation time and then index into that storage with a
general-purpose id when they call `get_payment_secret`. They will
then be provided the same index when the payment has been received.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
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