@@ -124,7 +124,7 @@ use crate::prelude::*;
124124#[ cfg( feature = "std" ) ]  
125125use  std:: time:: SystemTime ; 
126126
127- const  DEFAULT_RELATIVE_EXPIRY :  Duration  = Duration :: from_secs ( 7200 ) ; 
127+ pub ( crate )   const  DEFAULT_RELATIVE_EXPIRY :  Duration  = Duration :: from_secs ( 7200 ) ; 
128128
129129pub ( super )  const  SIGNATURE_TAG :  & ' static  str  = concat ! ( "lightning" ,  "invoice" ,  "signature" ) ; 
130130
@@ -169,7 +169,7 @@ impl<'a> InvoiceBuilder<'a, ExplicitSigningPubkey> {
169169		invoice_request :  & ' a  InvoiceRequest ,  payment_paths :  Vec < ( BlindedPath ,  BlindedPayInfo ) > , 
170170		created_at :  Duration ,  payment_hash :  PaymentHash 
171171	)  -> Result < Self ,  SemanticError >  { 
172- 		let  amount_msats = Self :: check_amount_msats ( invoice_request) ?; 
172+ 		let  amount_msats = Self :: amount_msats ( invoice_request) ?; 
173173		let  signing_pubkey = invoice_request. contents . inner . offer . signing_pubkey ( ) ; 
174174		let  contents = InvoiceContents :: ForOffer  { 
175175			invoice_request :  invoice_request. contents . clone ( ) , 
@@ -202,7 +202,7 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
202202		invoice_request :  & ' a  InvoiceRequest ,  payment_paths :  Vec < ( BlindedPath ,  BlindedPayInfo ) > , 
203203		created_at :  Duration ,  payment_hash :  PaymentHash ,  keys :  KeyPair 
204204	)  -> Result < Self ,  SemanticError >  { 
205- 		let  amount_msats = Self :: check_amount_msats ( invoice_request) ?; 
205+ 		let  amount_msats = Self :: amount_msats ( invoice_request) ?; 
206206		let  signing_pubkey = invoice_request. contents . inner . offer . signing_pubkey ( ) ; 
207207		let  contents = InvoiceContents :: ForOffer  { 
208208			invoice_request :  invoice_request. contents . clone ( ) , 
@@ -232,7 +232,7 @@ impl<'a> InvoiceBuilder<'a, DerivedSigningPubkey> {
232232} 
233233
234234impl < ' a ,  S :  SigningPubkeyStrategy >  InvoiceBuilder < ' a ,  S >  { 
235- 	fn  check_amount_msats ( invoice_request :  & InvoiceRequest )  -> Result < u64 ,  SemanticError >  { 
235+ 	pub ( crate )   fn  amount_msats ( invoice_request :  & InvoiceRequest )  -> Result < u64 ,  SemanticError >  { 
236236		match  invoice_request. amount_msats ( )  { 
237237			Some ( amount_msats)  => Ok ( amount_msats) , 
238238			None  => match  invoice_request. contents . inner . offer . amount ( )  { 
0 commit comments