|
|
@ -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) |
|
|
|
{ |
|
|
|
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,"coin",coin->symbol); |
|
|
|
jaddnum(reqjson,"notarized",coin->notarized); |
|
|
@ -39,6 +42,7 @@ void LP_dPoW_broadcast(struct iguana_info *coin) |
|
|
|
memset(zero.bytes,0,sizeof(zero)); |
|
|
|
LP_reserved_msg(0,coin->symbol,coin->symbol,zero,jprint(reqjson,1)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
char *LP_dPoW_recv(cJSON *argjson) |
|
|
|
{ |
|
|
|