mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
wire: use 26-bit lengths for inter-daemon messaging.
Fixes: #289 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
32631b4278
commit
3d316518fd
@@ -4,6 +4,11 @@
|
||||
#include <ccan/io/io.h>
|
||||
#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)
|
||||
|
||||
typedef u32 wire_len_t;
|
||||
|
||||
/* Read message into *data, allocating off ctx. */
|
||||
struct io_plan *io_read_wire_(struct io_conn *conn,
|
||||
const tal_t *ctx,
|
||||
|
||||
Reference in New Issue
Block a user