* initial_sanity_checks * * Some checks on a payment about to start. */
| 243 | * Some checks on a payment about to start. |
| 244 | */ |
| 245 | static struct command_result *initial_sanity_checks_cb(struct payment *payment) |
| 246 | { |
| 247 | assert(amount_msat_is_zero(payment->total_sent)); |
| 248 | assert(amount_msat_is_zero(payment->total_delivering)); |
| 249 | assert(!payment->preimage); |
| 250 | assert(tal_count(payment->cmd_array) == 1); |
| 251 | |
| 252 | return payment_continue(payment); |
| 253 | } |
| 254 | |
| 255 | REGISTER_PAYMENT_MODIFIER(initial_sanity_checks, initial_sanity_checks_cb); |
| 256 |
nothing calls this directly
no test coverage detected