diff --git a/iguana/coins/genbtc b/iguana/coins/genbtc index 4179c8fea..9ffd8b2f1 100755 --- a/iguana/coins/genbtc +++ b/iguana/coins/genbtc @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":-1,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":64,\"endpend\":64,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}" +curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":11,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":64,\"endpend\":64,\"services\":129,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}" diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 1d4c6e08a..2fc35490e 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -124,7 +124,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, } if ( block != 0 ) block->issued = addr->pendtime; - if ( coin->current == bp ) + if ( 0 && coin->current == bp ) printf("REQ.(%s) [%d:%d] %s n.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1,addr->ipaddr,addr->pendblocks); } else printf("MSG_BLOCK null datalen.%d\n",len); return(len); @@ -1318,8 +1318,11 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct supernet_info *myinfo,struc if ( (bp= iguana_bundleset(myinfo,coin,&block,&bundlei,(struct iguana_block *)&zblocks[i])) != 0 ) { bp->dirty++; - if ( bp->issued[bundlei] == 0 )//&& bp->hdrsi < coin->MAXBUNDLES ) + if ( bp->issued[bundlei] == 0 && coin->RTheight > 0 ) + { + bp->issued[bundlei] = 0; iguana_blockQ("recvhdr",coin,bp,bundlei,block->RO.hash2,0); + } //printf("{%d:%d} ",bp->hdrsi,bundlei); if ( i == 0 ) {