From d6fac1a5896bf8a7de04d0f477feac21e0f50d87 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 3 Dec 2017 23:39:11 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_stats.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index f1088c47d..2e9169e67 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -30,14 +30,18 @@ static uint32_t LP_requests,LP_reserveds,LP_connects,LP_connecteds,LP_tradestatu void LP_dPoW_broadcast(struct iguana_info *coin) { - bits256 zero; cJSON *reqjson = cJSON_CreateObject(); - jaddstr(reqjson,"method","dPoW"); - jaddstr(reqjson,"coin",coin->symbol); - jaddnum(reqjson,"notarized",coin->notarized); - jaddbits256(reqjson,"notarizedhash",coin->notarizedhash); - jaddbits256(reqjson,"notarizationtxid",coin->notarizationtxid); - memset(zero.bytes,0,sizeof(zero)); - LP_reserved_msg(0,coin->symbol,coin->symbol,zero,jprint(reqjson,1)); + bits256 zero; cJSON *reqjson; + if ( coin->isassetchain != 0 || strcmp(coin->symbol,"KMD") == 0 ) + { + reqjson = cJSON_CreateObject(); + jaddstr(reqjson,"method","dPoW"); + jaddstr(reqjson,"coin",coin->symbol); + jaddnum(reqjson,"notarized",coin->notarized); + jaddbits256(reqjson,"notarizedhash",coin->notarizedhash); + jaddbits256(reqjson,"notarizationtxid",coin->notarizationtxid); + memset(zero.bytes,0,sizeof(zero)); + LP_reserved_msg(0,coin->symbol,coin->symbol,zero,jprint(reqjson,1)); + } } char *LP_dPoW_recv(cJSON *argjson)