Revert "gossipd: handle premature node_announcements in the store."

This reverts commit e2f426903d.

With the new store version, this can't happen.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-09-21 10:01:45 +09:30
committed by Christian Decker
parent 48de77d56e
commit 8455b12781
4 changed files with 16 additions and 47 deletions

View File

@@ -312,13 +312,9 @@ bool routing_add_channel_update(struct routing_state *rstate,
* Directly add the node being announced to the network view, without verifying
* it. This must be from a trusted source, e.g., gossip_store. For untrusted
* sources (peers) please use @see{handle_node_announcement}.
*
* Populates *unknown_node if it isn't NULL and this returns false to indicate
* if failure was due to an unknown node_id.
*/
bool routing_add_node_announcement(struct routing_state *rstate,
const u8 *msg TAKES,
bool *unknown_node);
const u8 *msg TAKES);
/**