Browse Source

Test

etomic
jl777 7 years ago
parent
commit
d65842b491
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 13
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_nativeDEX.c

@ -18,13 +18,13 @@
// marketmaker
//
// prune expired/spent deposits from instantdex.json
// CPU usage spike after 12 hours
// verify claim works
// big BTC swaps
// https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki for signing BCH/BTG
//
// compress packets
// cancel bid/ask
// portfolio:
// portfolio to set prices from historical
// portfolio value based on ask?
// USD paxprice based USDvalue in portfolio

13
iguana/exchanges/LP_socket.c

@ -1016,6 +1016,19 @@ void LP_dedicatedloop(void *arg)
len += n;
if ( ep->buf[len - 1] == '\n' )
break;
memset(&fds,0,sizeof(fds));
fds.fd = ep->sock;
fds.events = POLLIN;
if ( poll(&fds,1,1000) <= 0 )
{
printf("no more electrum data after a second\n");
break;
}
}
else
{
printf("no more electrum data when expected\n");
break;
}
}
if ( len > 0 )

Loading…
Cancel
Save