Summary
An invoice funding deadline must be at least 24 hours in the future at the time of publishing. The validator should reject deadlines that are in the past or within the 24-hour minimum window. Unit tests should cover boundary values around the cutoff.
Scope
- Test a deadline exactly 24 hours from now passes validation
- Test a deadline 23 hours and 59 minutes from now fails with
deadline_too_soon
- Test a deadline in the past fails with
deadline_in_past
- Test a deadline 7 days from now passes validation
- Assert the validator uses the server clock and not a client-supplied timestamp
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
An invoice funding deadline must be at least 24 hours in the future at the time of publishing. The validator should reject deadlines that are in the past or within the 24-hour minimum window. Unit tests should cover boundary values around the cutoff.
Scope
deadline_too_soondeadline_in_pastAcceptance Criteria
deadline_too_soondeadline_in_pastETA: 12 hours
Coordinate on Telegram