Skip to content

Commit

Permalink
tests: Use correct privkey when calculating pubkey used in new_routin…
Browse files Browse the repository at this point in the history
…g_state(...) call
  • Loading branch information
practicalswift authored and cdecker committed Mar 25, 2018
1 parent cbe0b2d commit d4aadd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossipd/test/run-find_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d4aadd5

Please sign in to comment.