mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
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.
This commit is contained in:
parent
4a468af378
commit
c44836ee2f
@ -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…
Reference in New Issue
Block a user