diff --git a/gossipd/test/run-find_route.c b/gossipd/test/run-find_route.c index b7ed6d482..8c3c763aa 100644 --- a/gossipd/test/run-find_route.c +++ b/gossipd/test/run-find_route.c @@ -151,9 +151,9 @@ int main(void) setup_tmpctx(); memset(&tmp, 'a', sizeof(tmp)); + pubkey_from_privkey(&tmp, &a); rstate = new_routing_state(tmpctx, &zerohash, &a, 0); - pubkey_from_privkey(&tmp, &a); new_node(rstate, &a); memset(&tmp, 'b', sizeof(tmp));