|
@ -451,6 +451,7 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d |
|
|
item = cJSON_CreateObject(); |
|
|
item = cJSON_CreateObject(); |
|
|
init_hexbytes_noT(str,pubkeys[i],33); |
|
|
init_hexbytes_noT(str,pubkeys[i],33); |
|
|
jaddstr(item,"pubkey",str); |
|
|
jaddstr(item,"pubkey",str); |
|
|
|
|
|
printf("[%s %d] ",str,i); |
|
|
bitcoin_address(str,0,pubkeys[i],33); |
|
|
bitcoin_address(str,0,pubkeys[i],33); |
|
|
jaddstr(item,"BTCaddress",str); |
|
|
jaddstr(item,"BTCaddress",str); |
|
|
bitcoin_address(str,60,pubkeys[i],33); |
|
|
bitcoin_address(str,60,pubkeys[i],33); |
|
@ -459,11 +460,11 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d |
|
|
} |
|
|
} |
|
|
jadd(retjson,"notaries",array); |
|
|
jadd(retjson,"notaries",array); |
|
|
jaddnum(retjson,"numnotaries",numnotaries); |
|
|
jaddnum(retjson,"numnotaries",numnotaries); |
|
|
|
|
|
printf("numnotaries.%d\n",numnotaries); |
|
|
} |
|
|
} |
|
|
if ( retjson != 0 ) |
|
|
if ( retjson != 0 ) |
|
|
{ |
|
|
{ |
|
|
dpow_randipbits(myinfo,coin,retjson); |
|
|
dpow_randipbits(myinfo,coin,retjson); |
|
|
free(retstr); |
|
|
|
|
|
retstr = jprint(retjson,1); |
|
|
retstr = jprint(retjson,1); |
|
|
} |
|
|
} |
|
|
printf("DEX NOTARIES -> (%s)\n",retstr); |
|
|
printf("DEX NOTARIES -> (%s)\n",retstr); |
|
|