mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 991 forks source link

chrono deprecations warning cleanup #3759

Closed yeastplume closed 5 months ago

yeastplume commented 1 year ago

Cleans up warnings related to specific errors, mostly from_timestamp moving to a from_timestamp_opt function that returns an options.

Note from_timestamp_opt returns None in the following circumstances:

Returns None on the out-of-range number of seconds (more than 262 000 years away from common era) and/or invalid nanosecond (2 seconds or more).
yeastplume commented 5 months ago

6 Month re-review: think all of these are fine. PIBD is released and master set to an alpha so good time to integrate these.