mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
sphinx: Print test vectors to stderr instead of stdout
This commit is contained in:
@@ -28,7 +28,7 @@ static void do_generate(int argc, char **argv)
|
|||||||
if (secp256k1_ec_pubkey_create(secp256k1_ctx, &path[i].pubkey,
|
if (secp256k1_ec_pubkey_create(secp256k1_ctx, &path[i].pubkey,
|
||||||
privkeys[i]) != 1)
|
privkeys[i]) != 1)
|
||||||
errx(1, "Could not decode pubkey");
|
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++) {
|
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));
|
sizeof(hops_data[i].channel_id));
|
||||||
hops_data[i].amt_forward = i;
|
hops_data[i].amt_forward = i;
|
||||||
hops_data[i].outgoing_cltv = 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 =
|
struct onionpacket *res =
|
||||||
|
|||||||
Reference in New Issue
Block a user