[][src]Function lightning_invoice::check_platform

pub fn check_platform()

Call this function on startup to ensure that all assumptions about the platform are valid.

Unfortunately we have to make assumptions about the upper bounds of the SystemTime type on your platform which we can't fully verify at compile time and which isn't part of it's contract. To our best knowledge our assumptions hold for all platforms officially supported by rust, but since this check is fast we recommend to do it anyway.

If this function fails this is considered a bug. Please open an issue describing your platform and stating your current system time.

Panics

If the check fails this function panics. By calling this function on startup you ensure that this wont happen at an arbitrary later point in time.