Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
f80827a5e9
  1. 2
      iguana/iguana_peers.c
  2. 2
      iguana/iguana_recv.c

2
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("%02x",((uint8_t *)&H)[i]);
printf(" invalid header.%s received from (%s) len.%d\n",H.command,addr->ipaddr,len); 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)); // printf("%s recv error on hdr errno.%d (%s) -> zombify\n",addr->ipaddr,-recvlen,strerror(-recvlen));
#ifndef IGUANA_DEDICATED_THREADS #ifndef IGUANA_DEDICATED_THREADS

2
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); //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 = 0, bundlei = -2;
bp = iguana_bundlefind(coin,&bp,&bundlei,origtxdata->zblock.RO.hash2); bp = iguana_bundlefind(coin,&bp,&bundlei,origtxdata->zblock.RO.hash2);
if ( bp != 0 && bundlei >= 0 && bundlei < bp->n ) if ( bp != 0 && bundlei >= 0 && bundlei < bp->n )

Loading…
Cancel
Save