mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 23:54:22 +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,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;
|
||||
|
||||
Reference in New Issue
Block a user