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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2019-04-08 09:21:30 +09:30
parent f8f6533dba
commit 6f59d4deb5

View File

@ -6,7 +6,8 @@
#include <ccan/short_types/short_types.h>
/* 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