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,7 +13,6 @@
#include <daemon/invoice.h>
#include <daemon/jsonrpc.h>
#include <daemon/log.h>
#include <daemon/sphinx.h>
#include <errno.h>
#include <inttypes.h>
#include <lightningd/build_utxos.h>
@@ -26,6 +25,7 @@
#include <lightningd/key_derive.h>
#include <lightningd/opening/gen_opening_wire.h>
#include <lightningd/pay.h>
#include <lightningd/sphinx.h>
#include <netinet/in.h>
#include <overflows.h>
#include <sys/socket.h>
@@ -634,7 +634,7 @@ struct decoding_htlc {
u32 amount_msat;
u32 cltv_expiry;
struct sha256 payment_hash;
u8 onion[1254];
u8 onion[TOTAL_PACKET_SIZE];
u8 shared_secret[32];
};