From 0504a512119ced12d1cafdb6900826cb2ff49873 Mon Sep 17 00:00:00 2001 From: darosior Date: Sun, 8 Sep 2019 18:18:50 +0200 Subject: [PATCH] channeld/full_channel: use louder warning when peer is about to be failed --- channeld/full_channel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/channeld/full_channel.c b/channeld/full_channel.c index b3f46481b..d6f9ad756 100644 --- a/channeld/full_channel.c +++ b/channeld/full_channel.c @@ -667,7 +667,7 @@ enum channel_remove_err channel_fulfill_htlc(struct channel *channel, * - MUST fail the channel. */ if (!htlc_has(htlc, HTLC_FLAG(!htlc_owner(htlc), HTLC_F_COMMITTED))) { - status_trace("channel_fulfill_htlc: %"PRIu64" in state %s", + status_unusual("channel_fulfill_htlc: %"PRIu64" in state %s", htlc->id, htlc_state_name(htlc->state)); return CHANNEL_ERR_HTLC_UNCOMMITTED; } @@ -688,7 +688,7 @@ enum channel_remove_err channel_fulfill_htlc(struct channel *channel, else if (htlc->state == RCVD_ADD_ACK_REVOCATION) htlc->state = SENT_REMOVE_HTLC; else { - status_trace("channel_fulfill_htlc: %"PRIu64" in state %s", + status_unusual("channel_fulfill_htlc: %"PRIu64" in state %s", htlc->id, htlc_state_name(htlc->state)); return CHANNEL_ERR_HTLC_NOT_IRREVOCABLE; } @@ -721,7 +721,7 @@ enum channel_remove_err channel_fail_htlc(struct channel *channel, * - MUST fail the channel. */ if (!htlc_has(htlc, HTLC_FLAG(!htlc_owner(htlc), HTLC_F_COMMITTED))) { - status_trace("channel_fail_htlc: %"PRIu64" in state %s", + status_unusual("channel_fail_htlc: %"PRIu64" in state %s", htlc->id, htlc_state_name(htlc->state)); return CHANNEL_ERR_HTLC_UNCOMMITTED; } @@ -733,7 +733,7 @@ enum channel_remove_err channel_fail_htlc(struct channel *channel, else if (htlc->state == RCVD_ADD_ACK_REVOCATION) htlc->state = SENT_REMOVE_HTLC; else { - status_trace("channel_fail_htlc: %"PRIu64" in state %s", + status_unusual("channel_fail_htlc: %"PRIu64" in state %s", htlc->id, htlc_state_name(htlc->state)); return CHANNEL_ERR_HTLC_NOT_IRREVOCABLE; }