tests: Use correct privkey when calculating pubkey used in new_routing_state(...) call

This commit is contained in:
practicalswift 2018-03-23 12:31:29 +01:00 committed by Christian Decker
parent cbe0b2d3a8
commit d4aadd5e26

View File

@ -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));