Skip to content

Commit 8464875

Browse files
Drop need to store pending inbound payments
and replace payment_secret with encrypted metadata See docs on `inbound_payment::verify` for details Also add min_value checks to all create_inbound_payment* methods
1 parent 1d516a6 commit 8464875

File tree

4 files changed

+376
-28
lines changed

4 files changed

+376
-28
lines changed

lightning-invoice/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ where
6363
let (payment_hash, payment_secret) = channelmanager.create_inbound_payment(
6464
amt_msat,
6565
DEFAULT_EXPIRY_TIME.try_into().unwrap(),
66-
);
66+
).unwrap();
6767
let our_node_pubkey = channelmanager.get_our_node_id();
6868
let mut invoice = InvoiceBuilder::new(network)
6969
.description(description)

0 commit comments

Comments
 (0)