Browse Source

Test

etomic
jl777 7 years ago
parent
commit
d6fac1a589
  1. 6
      iguana/exchanges/LP_stats.c

6
iguana/exchanges/LP_stats.c

@ -30,7 +30,10 @@ static uint32_t LP_requests,LP_reserveds,LP_connects,LP_connecteds,LP_tradestatu
void LP_dPoW_broadcast(struct iguana_info *coin) void LP_dPoW_broadcast(struct iguana_info *coin)
{ {
bits256 zero; cJSON *reqjson = cJSON_CreateObject(); bits256 zero; cJSON *reqjson;
if ( coin->isassetchain != 0 || strcmp(coin->symbol,"KMD") == 0 )
{
reqjson = cJSON_CreateObject();
jaddstr(reqjson,"method","dPoW"); jaddstr(reqjson,"method","dPoW");
jaddstr(reqjson,"coin",coin->symbol); jaddstr(reqjson,"coin",coin->symbol);
jaddnum(reqjson,"notarized",coin->notarized); jaddnum(reqjson,"notarized",coin->notarized);
@ -38,6 +41,7 @@ void LP_dPoW_broadcast(struct iguana_info *coin)
jaddbits256(reqjson,"notarizationtxid",coin->notarizationtxid); jaddbits256(reqjson,"notarizationtxid",coin->notarizationtxid);
memset(zero.bytes,0,sizeof(zero)); memset(zero.bytes,0,sizeof(zero));
LP_reserved_msg(0,coin->symbol,coin->symbol,zero,jprint(reqjson,1)); LP_reserved_msg(0,coin->symbol,coin->symbol,zero,jprint(reqjson,1));
}
} }
char *LP_dPoW_recv(cJSON *argjson) char *LP_dPoW_recv(cJSON *argjson)

Loading…
Cancel
Save