From f80827a5e98c351986631243b07234e88d9c3293 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Jul 2016 11:19:48 -0300 Subject: [PATCH] test --- iguana/iguana_peers.c | 2 +- iguana/iguana_recv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 6991db1f6..d0ba06513 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -646,7 +646,7 @@ void _iguana_processmsg(struct iguana_info *coin,int32_t usock,struct iguana_pee printf("%02x",((uint8_t *)&H)[i]); printf(" invalid header.%s received from (%s) len.%d\n",H.command,addr->ipaddr,len); } - //addr->dead = 1; + addr->dead = 1; } // printf("%s recv error on hdr errno.%d (%s) -> zombify\n",addr->ipaddr,-recvlen,strerror(-recvlen)); #ifndef IGUANA_DEDICATED_THREADS diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index ce76ac80e..8b71fe3d0 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -373,7 +373,7 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i //iguana_blast(coin,addr); } } - copyflag = 0;//(coin->enableCACHE != 0) && (strcmp(coin->symbol,"BTC") != 0); + copyflag = (coin->enableCACHE != 0) && (strcmp(coin->symbol,"BTC") != 0); bp = 0, bundlei = -2; bp = iguana_bundlefind(coin,&bp,&bundlei,origtxdata->zblock.RO.hash2); if ( bp != 0 && bundlei >= 0 && bundlei < bp->n )