From 20d4c74819c846a4b55e8665bc011db905519794 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 11 Feb 2016 18:54:36 -0300 Subject: [PATCH] test --- iguana/iguana_instantdex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_instantdex.c b/iguana/iguana_instantdex.c index bf47b0331..1ba320bf8 100755 --- a/iguana/iguana_instantdex.c +++ b/iguana/iguana_instantdex.c @@ -461,7 +461,7 @@ int32_t instantdex_acceptextract(struct instantdex_accept *ap,cJSON *argjson) char *instantdex_parse(struct supernet_info *myinfo,struct instantdex_msghdr *msg,cJSON *argjson,char *remoteaddr,uint64_t signerbits,struct instantdex_offer *offer,bits256 orderhash,uint8_t *serdata,int32_t datalen) { - char cmdstr[16],*orderidstr,*retstr; struct exchange_info *exchange; uint64_t orderid; + char cmdstr[16],*retstr; struct exchange_info *exchange; struct instantdex_accept A,*ap = 0; bits256 traderpub; exchange = exchanges777_find("bitcoin"); memset(cmdstr,0,sizeof(cmdstr)), memcpy(cmdstr,msg->cmd,sizeof(msg->cmd)); @@ -482,7 +482,7 @@ char *instantdex_parse(struct supernet_info *myinfo,struct instantdex_msghdr *ms printf("got my own request.(%s)\n",jprint(argjson,0)); return(clonestr("{\"result\":\"got my own request\"}")); } - if ( (ap= instantdex_offerfind(myinfo,exchange,0,0,orderid,"*","*")) != 0 ) + if ( (ap= instantdex_offerfind(myinfo,exchange,0,0,A.orderid,"*","*")) != 0 ) { printf("found existing trade to match\n"); A = *ap;