mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
common/sphinx: make TOTAL_PACKET_SIZE a macro.
This paves the way for using it on different-sized onions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
dc67b60e28
commit
3776af4a35
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
|
||||
} else if (streq(argv[1], "unwrap")) {
|
||||
struct privkey privkey;
|
||||
struct pubkey blinding;
|
||||
u8 onion[TOTAL_PACKET_SIZE], *dec;
|
||||
u8 onion[TOTAL_PACKET_SIZE(ROUTING_INFO_SIZE)], *dec;
|
||||
struct onionpacket op;
|
||||
struct secret ss, onion_ss;
|
||||
struct secret hmac, rho;
|
||||
|
||||
Reference in New Issue
Block a user