]> git.bitcoin.ninja Git - rust-lightning/commit
Add basic_mpp support to InvoiceBuilder
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 28 Apr 2021 16:29:23 +0000 (09:29 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 3 May 2021 23:23:27 +0000 (16:23 -0700)
commit20e776bc8e2ebe7af3df99227c1f1a5467f42fc3
treed52a5c1be0773dc3f6b6a468d656875aefe4ebd2
parentb5f0ebab77961ce243fcf5a5fad3d4e161f4952a
Add basic_mpp support to InvoiceBuilder

Since InvoiceFeatures are an implementation detail of InvoiceBuilder, an
explicit call is needed to support the basic_mpp feature. Since it is
dependent on the payment_secret feature, conditionally define the
builder's method only when payment_secret has been set.
lightning-invoice/src/lib.rs
lightning-invoice/src/utils.rs