]> git.bitcoin.ninja Git - rust-lightning/commit
Add BOLT 12 merkle root test for `invoice_request`
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 28 Nov 2022 16:20:07 +0000 (11:20 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 9 Dec 2022 19:28:53 +0000 (13:28 -0600)
commitb25c8df648aa749de9b3f8ef42fa6d5b6dad42c8
tree848a67784880e783fac7cd6223019e253e237ba9
parent984c906406a5b3d49bb7e4723dbe36754cff6edd
Add BOLT 12 merkle root test for `invoice_request`

A BOLT 12 test vector uses an `invoice_request` message that has a
currency, which aren't supported, so using OfferBuilder::build_unchecked
is required to avoid a panic.
lightning/src/offers/invoice_request.rs
lightning/src/offers/merkle.rs