Use SystemTime::now() for Invoice creation time
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 13 Jan 2023 05:02:39 +0000 (23:02 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 22:04:38 +0000 (16:04 -0600)
commit7f52d26e6ed3e9ae3c4f413ada3f6c73e8fbc908
tree84680235efc27f132070678ddc30604cf8604791
parentf779bc066fe9a0da409502cd0c4655ba71c50a93
Use SystemTime::now() for Invoice creation time

For std builds, Invoice::created_at can be automatically set upon
construction using SystemTime::now() offset by SystemTime::UNIX_EPOCH.
Change InvoiceRequest::respond_with and Refund::respond_with to only
take a created_at parameter in no-std builds.
lightning/src/offers/invoice_request.rs
lightning/src/offers/refund.rs