Browse Source

fixed to properly pass outgoing cltv to hopdata

travis-debug
Richard Myers 5 years ago
committed by Rusty Russell
parent
commit
1c6ac953af
  1. 2
      devtools/onion.c

2
devtools/onion.c

@ -101,7 +101,7 @@ static void do_generate(int argc, char **argv,
hops_data[i].outgoing_cltv = i; hops_data[i].outgoing_cltv = i;
} }
fprintf(stderr, "Hopdata %d: %s\n", i, tal_hexstr(NULL, &hops_data[i], sizeof(hops_data[i]))); fprintf(stderr, "Hopdata %d: %s\n", i, tal_hexstr(NULL, &hops_data[i], sizeof(hops_data[i])));
sphinx_add_v0_hop(sp, &path[i], &hops_data[i].channel_id, hops_data[i].amt_forward, i); sphinx_add_v0_hop(sp, &path[i], &hops_data[i].channel_id, hops_data[i].amt_forward, hops_data[i].outgoing_cltv);
} }
struct onionpacket *res = create_onionpacket(ctx, sp, &shared_secrets); struct onionpacket *res = create_onionpacket(ctx, sp, &shared_secrets);

Loading…
Cancel
Save