Browse Source

common/sphinx: remove assertion that onions we parse must be 1366 bytes.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fix-mocks
Rusty Russell 4 years ago
committed by Christian Decker
parent
commit
0203477815
  1. 3
      common/sphinx.c

3
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

Loading…
Cancel
Save