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

Function handle_send_error

channeld/channeld.c:6631–6644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6629}
6630
6631static void handle_send_error(struct peer *peer, const u8 *msg)
6632{
6633 char *reason;
6634 if (!fromwire_channeld_send_error(msg, msg, &reason))
6635 master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg);
6636 status_debug("Send error reason: %s", reason);
6637 peer_write(peer->pps,
6638 take(towire_errorfmt(NULL, &peer->channel_id,
6639 "%s", reason)));
6640
6641 wire_sync_write(MASTER_FD,
6642 take(towire_channeld_send_error_reply(NULL)));
6643 exit(0);
6644}
6645
6646static void handle_dev_reenable_commit(struct peer *peer)
6647{

Callers 1

req_inFunction · 0.85

Calls 4

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

Tested by

no test coverage detected