#include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include bool handle_peer_error_or_warning(struct per_peer_state *pps, const u8 *msg TAKES) { const char *err; err = is_peer_error(tmpctx, msg); if (err) peer_failed_received_errmsg(pps, true, err); /* Simply log incoming warnings */ err = is_peer_warning(tmpctx, msg); if (err) { if (taken(msg)) tal_free(msg); status_info("Received %s", err); return true; } return false; }