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

Function handle_send_error

channeld/channeld.c:3628–3641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3626}
3627
3628static void handle_send_error(struct peer *peer, const u8 *msg)
3629{
3630 char *reason;
3631 if (!fromwire_channeld_send_error(msg, msg, &reason))
3632 master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg);
3633 status_debug("Send error reason: %s", reason);
3634 peer_write(peer->pps,
3635 take(towire_errorfmt(NULL, &peer->channel_id,
3636 "%s", reason)));
3637
3638 wire_sync_write(MASTER_FD,
3639 take(towire_channeld_send_error_reply(NULL)));
3640 exit(0);
3641}
3642
3643#if DEVELOPER
3644static void handle_dev_reenable_commit(struct peer *peer)

Callers 1

req_inFunction · 0.85

Calls 4

peer_writeFunction · 0.85
master_badmsgFunction · 0.50
towire_errorfmtFunction · 0.50
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected