Skip to content

Commit b017b1c

Browse files
committed
f - add clarifying comments to local constants
1 parent 2f9d44a commit b017b1c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lightning/src/offers/invoice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ where
492492

493493
impl UnsignedBolt12Invoice {
494494
fn new(invreq_bytes: &[u8], contents: InvoiceContents) -> Self {
495+
// TLV record ranges applicable to invreq_bytes.
495496
const NON_EXPERIMENTAL_TYPES: core::ops::Range<u64> = 0..INVOICE_REQUEST_TYPES.end;
496497
const EXPERIMENTAL_TYPES: core::ops::Range<u64> =
497498
EXPERIMENTAL_OFFER_TYPES.start..EXPERIMENTAL_INVOICE_REQUEST_TYPES.end;

lightning/src/offers/static_invoice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ macro_rules! invoice_accessors_signing_pubkey {
277277

278278
impl UnsignedStaticInvoice {
279279
fn new(offer_bytes: &Vec<u8>, contents: InvoiceContents) -> Self {
280+
// TLV record ranges applicable to offer_bytes.
280281
const NON_EXPERIMENTAL_TYPES: core::ops::Range<u64> = OFFER_TYPES;
281282
const EXPERIMENTAL_TYPES: core::ops::Range<u64> = EXPERIMENTAL_OFFER_TYPES;
282283

0 commit comments

Comments
 (0)