Support invoice expiry over a year
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 21 Jan 2022 22:57:17 +0000 (16:57 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 25 Jan 2022 21:34:10 +0000 (15:34 -0600)
commit3b14a76d0114f6f815c711ce03f15b98fe48825c
tree54af06f3e23824f1c3d84038ba3e64c839520b3f
parentd741fb14fa05e3ca8da01f2f38d068c02897ab31
Support invoice expiry over a year

The lightning-invoice crate represents timestamps as Duration since the
UNIX epoch rather than a SystemTime. Therefore, internal calculations
are in terms of u64-based Durations. This allows for relaxing the one
year maximum expiry.
lightning-invoice/src/de.rs
lightning-invoice/src/lib.rs