]> git.bitcoin.ninja Git - rust-lightning/commit
Make separate no-std version for invoice response
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 31 Jan 2023 20:35:49 +0000 (14:35 -0600)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Feb 2023 22:19:54 +0000 (22:19 +0000)
commit055c641b9b950e7afeff1df6b4953fce59943c60
tree9372e4cb07910cbc2a606989d26a010dd54e20a1
parent605633bd19f10ad97fc7a518dd692665cfc96627
Make separate no-std version for invoice response

Both Refund::respond_with and InvoiceRequest::respond_with take a
created_at since the Unix epoch Duration in no-std. However, this can
cause problems if two downstream dependencies want to use the lightning
crate with different feature flags set. Instead, define
respond_with_no_std versions of each method in addition to a
respond_with version in std.
lightning/src/offers/invoice.rs
lightning/src/offers/invoice_request.rs
lightning/src/offers/refund.rs