]> git.bitcoin.ninja Git - rust-lightning/commit
Test new behavior in create_bolt11_invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 29 Oct 2024 14:58:37 +0000 (09:58 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 8 Nov 2024 18:14:51 +0000 (12:14 -0600)
commit2a4a470c988146c1f7a8f3aad7d7e4029d736984
treeb4f79be110b2da7c23324d65713ba3ab29af60fc
parentb6ceafb4f6f8a1957d27d788e9f811e39cd4e5b1
Test new behavior in create_bolt11_invoice

Bolt11InvoiceParameters allows for setting currency and
duration_since_epoch. If currency is not set, test that the one
corresponding to ChannelManager's chain hash is usd. If
duration_since_epoch, is not set then highest seen timestamp is used in
non-std compilations.
lightning/src/ln/invoice_utils.rs