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

Function reserve_done_err

plugins/xpay/xpay.c:1511–1522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511static struct command_result *reserve_done_err(struct command *aux_cmd,
1512 const char *method,
1513 const char *buf,
1514 const jsmntok_t *result,
1515 struct attempt *attempt)
1516{
1517 payment_give_up(aux_cmd, attempt->payment, PAY_UNSPECIFIED_ERROR,
1518 "Reservation failed: '%.*s'",
1519 json_tok_full_len(result),
1520 json_tok_full(buf, result));
1521 return command_still_pending(aux_cmd);
1522}
1523
1524/* Does not set shared_secrets */
1525static struct attempt *new_attempt(struct payment *payment,

Callers

nothing calls this directly

Calls 4

payment_give_upFunction · 0.85
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50
command_still_pendingFunction · 0.50

Tested by

no test coverage detected