gossip: Refactoring the gossip handlers to use the routing_state

This commit is contained in:
Christian Decker
2017-02-01 15:01:23 +01:00
committed by Rusty Russell
parent d200a16988
commit d966961fbe
3 changed files with 29 additions and 29 deletions

View File

@@ -1880,13 +1880,13 @@ static bool nested_pkt_in(struct peer *peer, const u32 type,
{
switch (type) {
case WIRE_CHANNEL_ANNOUNCEMENT:
handle_channel_announcement(peer, innerpkt, innerpktlen);
handle_channel_announcement(peer->dstate->rstate, innerpkt, innerpktlen);
break;
case WIRE_CHANNEL_UPDATE:
handle_channel_update(peer, innerpkt, innerpktlen);
handle_channel_update(peer->dstate->rstate, innerpkt, innerpktlen);
break;
case WIRE_NODE_ANNOUNCEMENT:
handle_node_announcement(peer, innerpkt, innerpktlen);
handle_node_announcement(peer->dstate->rstate, innerpkt, innerpktlen);
break;
default:
/* BOLT01: Unknown even typed packets MUST kill the