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

Function handle_send_error

channeld/channeld.c:6770–6783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6768}
6769
6770static void handle_send_error(struct peer *peer, const u8 *msg)
6771{
6772 char *reason;
6773 if (!fromwire_channeld_send_error(msg, msg, &reason))
6774 master_badmsg(WIRE_CHANNELD_SEND_ERROR, msg);
6775 status_debug("Send error reason: %s", reason);
6776 peer_write(peer->pps,
6777 take(towire_errorfmt(NULL, &peer->channel_id,
6778 "%s", reason)));
6779
6780 wire_sync_write(MASTER_FD,
6781 take(towire_channeld_send_error_reply(NULL)));
6782 exit(0);
6783}
6784
6785static void handle_dev_reenable_commit(struct peer *peer)
6786{

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