| 1164 | */ |
| 1165 | |
| 1166 | static struct command_result *knowledgerelax_cb(struct payment *payment) |
| 1167 | { |
| 1168 | const u64 now_sec = clock_time().ts.tv_sec; |
| 1169 | enum renepay_errorcode err = uncertainty_relax( |
| 1170 | pay_plugin->uncertainty, now_sec - pay_plugin->last_time); |
| 1171 | if (err) |
| 1172 | plugin_err(pay_plugin->plugin, |
| 1173 | "uncertainty_relax failed with error %s", |
| 1174 | renepay_errorcode_name(err)); |
| 1175 | pay_plugin->last_time = now_sec; |
| 1176 | return payment_continue(payment); |
| 1177 | } |
| 1178 | |
| 1179 | REGISTER_PAYMENT_MODIFIER(knowledgerelax, knowledgerelax_cb); |
| 1180 |
nothing calls this directly
no test coverage detected