From 580a2612fd829a816bb8db9196cf8ac49f77cba4 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 2 Dec 2017 23:38:43 +0100 Subject: [PATCH] routing: Add local and sigfail to trace when receiving cannounce Signed-off-by: Christian Decker --- gossipd/routing.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 1d4dcb812..be5396dcc 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -513,9 +513,6 @@ bool handle_channel_announcement( // FIXME: Check features! //FIXME(cdecker) Check chain topology for the anchor TX - status_trace("Received channel_announcement for channel %s", - type_to_string(trc, struct short_channel_id, - &short_channel_id)); local = pubkey_eq(&node_id_1, &rstate->local_id) || pubkey_eq(&node_id_2, &rstate->local_id); @@ -524,6 +521,11 @@ bool handle_channel_announcement( &node_signature_1, &node_signature_2, &bitcoin_signature_1, &bitcoin_signature_2, serialized); + status_trace("Received channel_announcement for channel %s, local=%d, sigfail=%d", + type_to_string(trc, struct short_channel_id, + &short_channel_id), local, sigfail); + + if (sigfail && !local) { status_trace( "Signature verification of channel announcement failed");