| 952 | */ |
| 953 | |
| 954 | static struct command_result *checktimeout_cb(struct payment *payment) |
| 955 | { |
| 956 | if (time_after(clock_time(), payment->payment_info.stop_time)) { |
| 957 | return payment_fail(payment, PAY_STOPPED_RETRYING, "Timed out"); |
| 958 | } |
| 959 | return payment_continue(payment); |
| 960 | } |
| 961 | |
| 962 | REGISTER_PAYMENT_MODIFIER(checktimeout, checktimeout_cb); |
| 963 |
nothing calls this directly
no test coverage detected