From 0203477815a09541b7d927919ddd813821491f7c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 8 Dec 2020 21:05:35 +1030 Subject: [PATCH] common/sphinx: remove assertion that onions we parse must be 1366 bytes. Signed-off-by: Rusty Russell --- common/sphinx.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/sphinx.c b/common/sphinx.c index 95340a1b0..cb6bb5f56 100644 --- a/common/sphinx.c +++ b/common/sphinx.c @@ -152,9 +152,6 @@ struct onionpacket *parse_onionpacket(const tal_t *ctx, const u8 *cursor = src; size_t max = srclen; - /* FIXME: Allow parsing other sizes! */ - assert(srclen == TOTAL_PACKET_SIZE(ROUTING_INFO_SIZE)); - dest->version = fromwire_u8(&cursor, &max); if (dest->version != 0x00) { // FIXME add logging