sphinx: Removed per-hop payloads, will be replaced by hop_data

This is in preparation for the migration to `hop_data` which contains
all fields, and uses the `short_channel_id` instead of the pubkey.
This commit is contained in:
Christian Decker
2017-04-13 11:12:07 -07:00
parent 778b756369
commit 752f884c23
3 changed files with 7 additions and 76 deletions

View File

@@ -141,13 +141,9 @@ int main(int argc, char **argv)
return 1;
}
struct hoppayload *hoppayloads = tal_arr(ctx, struct hoppayload, num_hops);
for (i=0; i<num_hops; i++)
memset(&hoppayloads[i], 'A', sizeof(hoppayloads[i]));
struct onionpacket *res = create_onionpacket(ctx,
path,
hoppayloads,
sessionkey,
assocdata,
sizeof(assocdata));