Add basic_mpp support to InvoiceBuilder
[rust-lightning] / lightning-invoice / src / utils.rs
index c53afdee7b3e644d12d66ec8ab5fc119964e1072..70df3c4553134bbe675253af349520521924a6bb 100644 (file)
@@ -64,6 +64,7 @@ where
                .payee_pub_key(our_node_pubkey)
                .payment_hash(Hash::from_slice(&payment_hash.0).unwrap())
                .payment_secret(payment_secret)
+               .basic_mpp()
                .min_final_cltv_expiry(MIN_FINAL_CLTV_EXPIRY.into());
        if let Some(amt) = amt_msat {
                invoice = invoice.amount_pico_btc(amt * 10);