mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
gossipd: suppress redundant local updates which we would generate.
This doesn't do anything for us now, since we actually tend to produce DISABLE/ENABLE update pairs. But the infrastructure is useful for the next patch. We also add more details to the trace message in the core update code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
2d533dc82e
commit
ef59a8f4aa
@@ -1207,11 +1207,14 @@ u8 *handle_channel_update(struct routing_state *rstate, const u8 *update,
|
||||
return err;
|
||||
}
|
||||
|
||||
status_trace("Received channel_update for channel %s(%d) now %s (from %s)",
|
||||
status_trace("Received channel_update for channel %s(%d) now %s was %s (from %s)",
|
||||
type_to_string(tmpctx, struct short_channel_id,
|
||||
&short_channel_id),
|
||||
flags & 0x01,
|
||||
flags & ROUTING_FLAGS_DISABLED ? "DISABLED" : "ACTIVE",
|
||||
is_halfchan_defined(c)
|
||||
? (c->flags & ROUTING_FLAGS_DISABLED ? "DISABLED" : "ACTIVE")
|
||||
: "UNDEFINED",
|
||||
source);
|
||||
|
||||
if (!routing_add_channel_update(rstate, serialized))
|
||||
|
||||
Reference in New Issue
Block a user