Browse Source

SBTC signing fix, listen to 512

dev
jl777 7 years ago
parent
commit
6b6e99a6c8
  1. 1
      iguana/exchanges/LP_bitcoin.c
  2. 2
      iguana/exchanges/stats.c

1
iguana/exchanges/LP_bitcoin.c

@ -3320,6 +3320,7 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht
len += iguana_rwnum(1,&serialized[len],sizeof(hashtype),&hashtype);
if ( sbtcflag != 0 )
{
serialized[len++] = 4;
memcpy(&serialized[len],"sbtc",4);
len += 4;
}

2
iguana/exchanges/stats.c

@ -221,7 +221,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port)
return(-1);
}
}
if ( listen(sock,1) != 0 )
if ( listen(sock,512) != 0 )
{
printf("listen(%s) port.%d failed: %s sock.%d. errno.%d\n",hostname,port,strerror(errno),sock,errno);
if ( sock >= 0 )

Loading…
Cancel
Save