From 293bc04a2ba61391c74ab3579574e28fd5ea6ae0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 7 Jul 2017 17:53:40 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_include.h | 2 +- iguana/exchanges/LP_network.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_include.h b/iguana/exchanges/LP_include.h index fbcc23581..5bcc85479 100644 --- a/iguana/exchanges/LP_include.h +++ b/iguana/exchanges/LP_include.h @@ -24,7 +24,7 @@ #define LP_COMMAND_SENDSOCK NN_PUSH #define LP_COMMAND_RECVSOCK NN_PULL -#define LP_ENCRYPTED_MAXSIZE (1024 + 2 + crypto_box_NONCEBYTES + crypto_box_ZEROBYTES) +#define LP_ENCRYPTED_MAXSIZE (4096 + 2 + crypto_box_NONCEBYTES + crypto_box_ZEROBYTES) #define LP_MAXPUBKEY_ERRORS 3 #define PSOCK_KEEPALIVE 3600 diff --git a/iguana/exchanges/LP_network.c b/iguana/exchanges/LP_network.c index 518d86d9d..e1dc1db6d 100644 --- a/iguana/exchanges/LP_network.c +++ b/iguana/exchanges/LP_network.c @@ -249,6 +249,8 @@ void LP_broadcast_message(int32_t pubsock,char *base,char *rel,bits256 destpub25 { strcpy(method,methodstr); jdelete(argjson,"method"); + if ( jobj(argjson,"method2") != 0 ) + jdelete(argjson,"method2"); jaddstr(argjson,"method2",method); jaddstr(argjson,"method",method); msg = (void *)jprint(argjson,0);