Browse Source

test

etomic
jl777 8 years ago
parent
commit
f04f46a77c
  1. 3
      iguana/dpow/dpow_network.c
  2. 2
      iguana/dpow/dpow_rpc.c

3
iguana/dpow/dpow_network.c

@ -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);

2
iguana/dpow/dpow_rpc.c

@ -51,7 +51,7 @@ int32_t komodo_notaries(char *symbol,uint8_t pubkeys[64][33],int32_t height)
{ {
height = jint(retjson,"blocks") - 1; height = jint(retjson,"blocks") - 1;
free_json(retjson); free_json(retjson);
printf("komodo_notaries height.%d\n",height); //printf("komodo_notaries height.%d\n",height);
} }
} }
if ( coin->FULLNODE < 0 ) if ( coin->FULLNODE < 0 )

Loading…
Cancel
Save