Browse Source

sphinx: Use test vector hop_data

The test vector no longer simply fills the hop_data with 'A', instead
we actually fill in the struct.
ppa-0.6.1
Christian Decker 8 years ago
parent
commit
c44836ee2f
  1. 8
      test/test_sphinx.c

8
test/test_sphinx.c

@ -142,8 +142,12 @@ int main(int argc, char **argv)
return 1;
}
for (i=0; i<num_hops; i++) {
memset(&hops_data[i], 'A', sizeof(hops_data[i]));
for (i = 0; i < num_hops; i++) {
hops_data[i].realm = 0x00;
memset(&hops_data[i].channel_id, i,
sizeof(hops_data[i].channel_id));
hops_data[i].amt_forward = i;
hops_data[i].outgoing_cltv = i;
}
struct onionpacket *res = create_onionpacket(ctx,

Loading…
Cancel
Save