Browse Source

test

acspeed
jl777 8 years ago
parent
commit
2d4022ce2d
  1. 2
      deprecated/iguana_instantdex.c
  2. 3
      iguana/dpow/dpow_rpc.c
  3. 2
      iguana/iguana_notary.c

2
deprecated/iguana_instantdex.c

@ -877,7 +877,7 @@ struct instantdex_accept *instantdex_quotefind(struct supernet_info *myinfo,stru
struct iguana_bundlereq *instantdex_recvquotes(struct iguana_info *coin,struct iguana_bundlereq *req,bits256 *quotes,int32_t n)
{
int32_t i,len,state,m = 0; uint8_t serialized[10000]; struct instantdex_accept *ap; struct exchange_info *exchange;
int32_t i,len,state,m = 0; uint8_t serialized[16384]; struct instantdex_accept *ap; struct exchange_info *exchange;
exchange = exchanges777_find("bitcoin");
if ( req->addr == 0 )
return(0);

3
iguana/dpow/dpow_rpc.c

@ -101,6 +101,7 @@ int32_t dpow_paxpending(uint8_t *hex)
decode_hex(hex,n,hexstr);
free_json(retjson);
}
printf("PAXPENDING.(%s)\n",retstr);
free(retstr);
}
}
@ -780,7 +781,7 @@ void dpow_issuer_voutupdate(struct dpow_info *dp,char *symbol,int32_t isspecial,
int32_t dpow_issuer_tx(struct dpow_info *dp,struct iguana_info *coin,int32_t height,int32_t txi,char *txidstr,uint32_t port)
{
char *retstr,params[256],*hexstr; uint8_t script[10000]; cJSON *json,*oldpub,*newpub,*result,*vouts,*item,*sobj; int32_t vout,n,len,isspecial,retval = -1; uint64_t value; bits256 txid;
char *retstr,params[256],*hexstr; uint8_t script[16384]; cJSON *json,*oldpub,*newpub,*result,*vouts,*item,*sobj; int32_t vout,n,len,isspecial,retval = -1; uint64_t value; bits256 txid;
sprintf(params,"[\"%s\", 1]",txidstr);
if ( (retstr= dpow_issuemethod(coin->chain->userpass,(char *)"getrawtransaction",params,port)) != 0 )
{

2
iguana/iguana_notary.c

@ -275,6 +275,8 @@ TWO_STRINGS(iguana,dpow,symbol,pubkey)
myinfo->numdpows++;
PAX_init();
portable_mutex_init(&dp->mutex);
uint8_t buf[32768];
dpow_paxpending(buf);
return(clonestr("{\"result\":\"success\"}"));
}

Loading…
Cancel
Save