mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
routing: Add local and sigfail to trace when receiving cannounce
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
ba45ccffd8
commit
580a2612fd
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user