sphinx: Updating daemon to new sphinx implementation

Mainly switching from the old include to the new include and adjusting
the actual size of the onion packet. It also moves `channel.c` to use
`struct hop_data`.

It introduces a dummy next hop in `channel.c` that will be replaced in
the next commit.
This commit is contained in:
Christian Decker
2017-04-28 16:28:53 +02:00
parent b3af8d50a7
commit f24aab1916
10 changed files with 24 additions and 19 deletions

View File

@@ -13,6 +13,7 @@ void fromwire_pad_orig(const u8 **cursor, size_t *max, size_t num);
#include <ccan/structeq/structeq.h>
#include <assert.h>
#include <stdio.h>
#include <lightningd/sphinx.h>
secp256k1_context *secp256k1_ctx;
@@ -206,7 +207,7 @@ struct msg_update_add_htlc {
u32 amount_msat;
u32 expiry;
struct sha256 payment_hash;
u8 onion_routing_packet[1254];
u8 onion_routing_packet[TOTAL_PACKET_SIZE];
};
struct msg_update_fee {
struct channel_id channel_id;