diff --git a/iguana/coins/genbtcd b/iguana/coins/genbtcd index 718f77179..7accd6897 100755 --- a/iguana/coins/genbtcd +++ b/iguana/coins/genbtcd @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":11,\"poll\":50,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTCD\",\"startpend\":64,\"endpend\":64,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":14631,\"rpc\":14632,\"minconfirms\":5}" +curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":11,\"poll\":50,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTCD\",\"startpend\":256,\"endpend\":256,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":14631,\"rpc\":14632,\"minconfirms\":5}" diff --git a/iguana/iguana_init.c b/iguana/iguana_init.c index 6212ec57a..1e9704fb3 100755 --- a/iguana/iguana_init.c +++ b/iguana/iguana_init.c @@ -302,7 +302,7 @@ void iguana_parseline(struct supernet_info *myinfo,struct iguana_info *coin,int3 //printf("parse line.(%s) maxpeers.%d\n",line,coin->MAXPEERS); if ( iter == 0 ) { - if ( (m < 8 || (rand() % 2) == 0) && (m < 32 || m < coin->MAXPEERS/2) )//&& m < 77.7 ) + if ( (rand() % 2) == 0 && m < coin->MAXPEERS/2 ) { if ( 0 && m == 0 ) { diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 640c425b8..ad9c406a5 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -502,8 +502,9 @@ int32_t iguana_send(struct iguana_info *coin,struct iguana_peer *addr,uint8_t *s { if ( errno == EAGAIN ) { - sleep(1); - continue; + addr->persistent_peer = 1; + //sleep(1); + //continue; } printf("send errno.%d %s\n",errno,strerror(errno)); if ( errno != EAGAIN && errno != EWOULDBLOCK )