routing: Suppress UNUSUAL log message for UPDATE failcodes from local.

This commit is contained in:
ZmnSCPxj 2018-02-09 12:50:42 +00:00 committed by Christian Decker
parent d5effcb961
commit fecfd55e06

View File

@ -1264,6 +1264,10 @@ void routing_failure(struct routing_state *rstate,
* reactivated. */ * reactivated. */
if (failcode & UPDATE) { if (failcode & UPDATE) {
if (tal_len(channel_update) == 0) { if (tal_len(channel_update) == 0) {
/* Suppress UNUSUAL log if local failure */
if (structeq(&erring_node_pubkey->pubkey,
&rstate->local_id.pubkey))
goto out;
status_trace("UNUSUAL routing_failure: " status_trace("UNUSUAL routing_failure: "
"UPDATE bit set, no channel_update. " "UPDATE bit set, no channel_update. "
"failcode: 0x%04x", "failcode: 0x%04x",