From 2d4022ce2d557d5727134406779fc35ebc362e74 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 21 Nov 2016 16:32:23 -0300 Subject: [PATCH] test --- deprecated/iguana_instantdex.c | 2 +- iguana/dpow/dpow_rpc.c | 3 ++- iguana/iguana_notary.c | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deprecated/iguana_instantdex.c b/deprecated/iguana_instantdex.c index 20de75225..85755175b 100755 --- a/deprecated/iguana_instantdex.c +++ b/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); diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index 8cd4ab71b..f513b3923 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/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 ) { diff --git a/iguana/iguana_notary.c b/iguana/iguana_notary.c index 03fbcd193..049b88709 100755 --- a/iguana/iguana_notary.c +++ b/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\"}")); }