gossipd: specify origin of updates in errors.

@cdecker points out that in test_forward, where we manually create a route,
we get an error back which contains an update for an unknown channel.

We should still note this, but it's not an error for testing.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-05-18 15:19:08 +09:30
committed by Christian Decker
parent 8ee60e2d8e
commit c546b1bbb6
5 changed files with 22 additions and 17 deletions

View File

@@ -228,7 +228,8 @@ bool handle_pending_cannouncement(struct routing_state *rstate,
const u8 *txscript);
/* Returns NULL if all OK, otherwise an error for the peer which sent. */
u8 *handle_channel_update(struct routing_state *rstate, const u8 *update);
u8 *handle_channel_update(struct routing_state *rstate, const u8 *update,
const char *source);
/* Returns NULL if all OK, otherwise an error for the peer which sent. */
u8 *handle_node_announcement(struct routing_state *rstate, const u8 *node);