From 6f59d4deb524297b9ce05c4a45500b80492f5290 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 8 Apr 2019 09:21:30 +0930 Subject: [PATCH] gossipd: temporarily allow giant messages We push a huge msg for listchannels with the million-channels project. We need to fix that, but this works around it so we can benchmark. Signed-off-by: Rusty Russell --- wire/wire_io.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/wire_io.h b/wire/wire_io.h index 156b46de8..2cdb537ee 100644 --- a/wire/wire_io.h +++ b/wire/wire_io.h @@ -6,7 +6,8 @@ #include /* We don't allow > 64M msgs: enough for 483 64k failure msgs. */ -#define WIRE_LEN_LIMIT (1 << 26) +/* FIXME: Too big, but allows the million-channels project at 327077670 bytes */ +#define WIRE_LEN_LIMIT (1 << 29) typedef be32 wire_len_t; #define wirelen_to_cpu be32_to_cpu