mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 13:25:43 +01:00
common/sphinx: remove assertion that onions we parse must be 1366 bytes.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
32c7c133f4
commit
0203477815
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user