Browse Source

Fix edge case

dev
jl777 7 years ago
parent
commit
1207ff9b9a
  1. 2
      iguana/exchanges/LP_remember.c

2
iguana/exchanges/LP_remember.c

@ -1282,7 +1282,7 @@ cJSON *basilisk_remember(int64_t *KMDtotals,int64_t *BTCtotals,uint32_t requesti
free_json(txoutobj), flag = 0;
else flag = -1, rswap.depositspent = deadtxid;
}
if ( flag == 0 && (bits256_nonz(rswap.paymentspent) != 0 || time(NULL) > rswap.plocktime+777+120) )
if ( flag == 0 && bits256_nonz(rswap.paymentspent) != 0 )//|| time(NULL) > rswap.plocktime+777+120) )
{
//printf("do the refund! paymentspent.%s now.%u vs expiration.%u\n",bits256_str(str,rswap.paymentspent),(uint32_t)time(NULL),rswap.expiration);
//if ( txbytes[BASILISK_BOBREFUND] == 0 )

Loading…
Cancel
Save