Browse Source

Test

etomic
jl777 7 years ago
parent
commit
323ff895a8
  1. 2
      iguana/exchanges/LP_remember.c
  2. 3
      iguana/exchanges/LP_transaction.c

2
iguana/exchanges/LP_remember.c

@ -828,7 +828,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
if ( alice->inactive != 0 || bob->inactive != 0 ) if ( alice->inactive != 0 || bob->inactive != 0 )
{ {
printf("Alice.%s inactive.%u or Bob.%s inactive.%u\n",rswap.alicecoin,alice->inactive,rswap.bobcoin,bob->inactive); printf("Alice.%s inactive.%u or Bob.%s inactive.%u\n",rswap.alicecoin,alice->inactive,rswap.bobcoin,bob->inactive);
return(0); return(cJSON_Parse("{\"error\":\"inactive bob or alice coin\"}"));
} }
LP_rswap_checktx(&rswap,rswap.alicecoin,BASILISK_ALICEPAYMENT); LP_rswap_checktx(&rswap,rswap.alicecoin,BASILISK_ALICEPAYMENT);
LP_rswap_checktx(&rswap,rswap.bobcoin,BASILISK_BOBPAYMENT); LP_rswap_checktx(&rswap,rswap.bobcoin,BASILISK_BOBPAYMENT);

3
iguana/exchanges/LP_transaction.c

@ -81,7 +81,8 @@ bits256 LP_broadcast(char *txname,char *symbol,char *txbytes,bits256 expectedtxi
} }
char str[65]; printf("sentflag.%d [%s] %s RETSTR.(%s) %s.%s\n",sentflag,txname,txbytes,retstr,symbol,bits256_str(str,txid)); char str[65]; printf("sentflag.%d [%s] %s RETSTR.(%s) %s.%s\n",sentflag,txname,txbytes,retstr,symbol,bits256_str(str,txid));
free(retstr); free(retstr);
} } else if ( sentflag == 0 )
printf("null retstr\n");
if ( sentflag != 0 ) if ( sentflag != 0 )
break; break;
sleep(3); sleep(3);

Loading…
Cancel
Save