]> 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)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Feb 2023 21:23:33 +0000 (15:23 -0600)
commit4763612131e429ec77883ff7e34ce28acb096b26
tree5d9f39b6eb9faa5f54d27d966261af2f6f5a0b0b
parent3302f25e9fceb7b79632710cd13a789e6d0daee5
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