]> git.bitcoin.ninja Git - rust-lightning/commit
Use BlindedPath::new_for_payment in fuzz tests
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 23 Jul 2024 20:40:32 +0000 (15:40 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 30 Jul 2024 21:06:24 +0000 (16:06 -0500)
commit3e832cbb734f7388c496a65cfa5eff6d287773f8
tree6bac69639c3c9037ef672569d8bfb23490fb43e0
parent293543b7c3f4f7601569ea4362165db08b120810
Use BlindedPath::new_for_payment in fuzz tests

When creating a Bolt12Invoice in fuzz tests, use
BlindedPath::new_for_payment instead of BlindedPath::new_for_message.
This way PaymentContext is used instead of MessageContext, as is more
realistic though should not affect the test. This allows us to remove
OffersContext::Unknown.
fuzz/src/invoice_request_deser.rs
fuzz/src/refund_deser.rs