MCPcopy Create free account
hub / github.com/ElementsProject/lightning / initial_sanity_checks_cb

Function initial_sanity_checks_cb

plugins/renepay/mods.c:245–253  ·  view source on GitHub ↗

* initial_sanity_checks * * Some checks on a payment about to start. */

Source from the content-addressed store, hash-verified

243 * Some checks on a payment about to start.
244 */
245static 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
255REGISTER_PAYMENT_MODIFIER(initial_sanity_checks, initial_sanity_checks_cb);
256

Callers

nothing calls this directly

Calls 2

amount_msat_is_zeroFunction · 0.85
payment_continueFunction · 0.70

Tested by

no test coverage detected