Browse Source

Test

etomic
jl777 7 years ago
parent
commit
703a2fd041
  1. 2
      iguana/exchanges/LP_include.h
  2. 9
      iguana/exchanges/LP_instantdex.c

2
iguana/exchanges/LP_include.h

@ -27,7 +27,7 @@
#define LP_MAJOR_VERSION "0"
#define LP_MINOR_VERSION "1"
#define LP_BUILD_NUMBER "17577"
#define LP_BUILD_NUMBER "17667"
#define LP_BARTERDEX_VERSION 1
#define LP_MAGICBITS 1

9
iguana/exchanges/LP_instantdex.c

@ -447,7 +447,8 @@ int64_t LP_myzcredits()
cJSON *LP_swapstats_item(struct LP_swapstats *sp,int32_t iambob)
{
struct iguana_info *bob,*alice; cJSON *item = cJSON_CreateObject();
struct iguana_info *bob,*alice; int32_t flag = 0; cJSON *item; char *retstr;
item = cJSON_CreateObject();
jaddnum(item,"iambob",iambob);
jaddnum(item,"aliceid",sp->aliceid);
jaddnum(item,"requestid",sp->Q.R.requestid);
@ -464,12 +465,18 @@ cJSON *LP_swapstats_item(struct LP_swapstats *sp,int32_t iambob)
{
jaddnum(item,"bobneeds_dPoW",sp->bobneeds_dPoW);
jaddnum(item,"bob_dPoWheight",bob->notarized);
if ( sp->bobneeds_dPoW == 1 )
flag = 1;
}
if ( sp->aliceneeds_dPoW != 0 && (alice= LP_coinfind(sp->Q.destcoin)) != 0 )
{
jaddnum(item,"aliceneeds_dPoW",sp->aliceneeds_dPoW);
jaddnum(item,"alice_dPoWheight",alice->notarized);
if ( sp->aliceneeds_dPoW == 1 )
flag = 1;
}
if ( flag != 0 && (retstr= LP_gettradestatus(sp->aliceid)) != 0 )
free(retstr);
}
return(item);
}

Loading…
Cancel
Save