mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
sphinx: Print test vectors to stderr instead of stdout
This commit is contained in:
parent
ff6d5e896a
commit
249464ccd2
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ static void do_generate(int argc, char **argv)
|
|||
if (secp256k1_ec_pubkey_create(secp256k1_ctx, &path[i].pubkey,
|
||||
privkeys[i]) != 1)
|
||||
errx(1, "Could not decode pubkey");
|
||||
printf("Node %d pubkey %s\n", i, secp256k1_pubkey_to_hexstr(ctx, &path[i].pubkey));
|
||||
fprintf(stderr, "Node %d pubkey %s\n", i, secp256k1_pubkey_to_hexstr(ctx, &path[i].pubkey));
|
||||
}
|
||||
|
||||
for (int i = 0; i < num_hops; i++) {
|
||||
|
@ -38,7 +38,7 @@ static void do_generate(int argc, char **argv)
|
|||
sizeof(hops_data[i].channel_id));
|
||||
hops_data[i].amt_forward = i;
|
||||
hops_data[i].outgoing_cltv = i;
|
||||
printf("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])));
|
||||
}
|
||||
|
||||
struct onionpacket *res =
|
||||
|
|
Loading…
Add table
Reference in a new issue