Browse Source

routing: Add local and sigfail to trace when receiving cannounce

Signed-off-by: Christian Decker <decker.christian@gmail.com>
ppa-0.6.1
Christian Decker 7 years ago
committed by Rusty Russell
parent
commit
580a2612fd
  1. 8
      gossipd/routing.c

8
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");

Loading…
Cancel
Save