mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
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:
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user