mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 07:34:24 +01:00
gossip: Wrap channel_updates in the gossip_store as well
Bypasses verification when loading from the gossip_store. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
committed by
Rusty Russell
parent
6e01f38d7d
commit
db13c7e851
@@ -1029,8 +1029,9 @@ u8 *handle_channel_update(struct routing_state *rstate, const u8 *update,
|
||||
flags & 0x01,
|
||||
flags & ROUTING_FLAGS_DISABLED ? "DISABLED" : "ACTIVE");
|
||||
|
||||
if (store)
|
||||
gossip_store_append(rstate->store, serialized);
|
||||
/* Only store updates for public channels */
|
||||
if (chan->public)
|
||||
gossip_store_add_channel_update(rstate->store, serialized);
|
||||
routing_add_channel_update(rstate, serialized);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user