Browse Source

test

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

1
iguana/dpow/dpow_network.c

@ -260,6 +260,7 @@ char *dex_response(int32_t *broadcastflagp,struct supernet_info *myinfo,struct d
}
else if ( dexreq.func == 'L' )
{
printf("call list.(%s %d %d)\n",(char *)&dexp->packet[datalen],dexreq.shortarg,dexreq.intarg);
if ( (retjson= dpow_listtransactions(myinfo,coin,(char *)&dexp->packet[datalen],dexreq.shortarg,dexreq.intarg)) != 0 )
retstr = jprint(retjson,1);
}

1
iguana/dpow/dpow_rpc.c

@ -332,6 +332,7 @@ cJSON *dpow_listtransactions(struct supernet_info *myinfo,struct iguana_info *co
sprintf(buf,"[\"%s\", %d, %d, true]",coinaddr,count,skip);
if ( (retstr= bitcoind_passthru(coin->symbol,coin->chain->serverport,coin->chain->userpass,"listtransactions",buf)) != 0 )
{
printf("LIST.(%s)\n",retstr);
json = cJSON_Parse(retstr);
free(retstr);
return(json);

Loading…
Cancel
Save