Skip to content

Commit 3cae233

Browse files
authored
Merge pull request lightningdevkit#1477 from dunxen/2022-05-invoice-expiry-nits
2 parents edd3030 + ea016cd commit 3cae233

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lightning-invoice/src/utils.rs

+7-8
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ where
230230
let duration = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)
231231
.expect("for the foreseeable future this shouldn't happen");
232232
create_invoice_from_channelmanager_and_duration_since_epoch(
233-
channelmanager, keys_manager, network, amt_msat,
234-
description, duration, invoice_expiry_delta_secs
233+
channelmanager, keys_manager, network, amt_msat, description, duration,
234+
invoice_expiry_delta_secs
235235
)
236236
}
237237

@@ -815,12 +815,11 @@ mod test {
815815
};
816816
let non_default_invoice_expiry_secs = 4200;
817817

818-
let invoice = ::utils::create_phantom_invoice::<
819-
EnforcingSigner, &test_utils::TestKeysInterface
820-
>(
821-
Some(payment_amt), payment_hash, "test".to_string(), non_default_invoice_expiry_secs,
822-
route_hints, &nodes[1].keys_manager, Currency::BitcoinTestnet
823-
).unwrap();
818+
let invoice =
819+
::utils::create_phantom_invoice::<EnforcingSigner, &test_utils::TestKeysInterface>(
820+
Some(payment_amt), payment_hash, "test".to_string(), non_default_invoice_expiry_secs,
821+
route_hints, &nodes[1].keys_manager, Currency::BitcoinTestnet
822+
).unwrap();
824823
let (payment_hash, payment_secret) = (PaymentHash(invoice.payment_hash().into_inner()), *invoice.payment_secret());
825824
let payment_preimage = if user_generated_pmt_hash {
826825
user_payment_preimage

0 commit comments

Comments
 (0)