Skip to content

Commit 6372066

Browse files
f s/matches_invreq/from_same_offer
1 parent 90d0103 commit 6372066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/offers/static_invoice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl StaticInvoice {
312312
self.signature
313313
}
314314

315-
pub(crate) fn matches_invreq(&self, invreq: &InvoiceRequest) -> bool {
315+
pub(crate) fn from_same_offer(&self, invreq: &InvoiceRequest) -> bool {
316316
let invoice_offer_tlv_stream = TlvStream::new(&self.bytes).range(OFFER_TYPES);
317317
let invreq_offer_tlv_stream = TlvStream::new(invreq.bytes()).range(OFFER_TYPES);
318318
invoice_offer_tlv_stream.eq(invreq_offer_tlv_stream)

0 commit comments

Comments
 (0)