From c8450e46240753441b4a33ab7de907e1e9b577e0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Sep 2016 15:31:24 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 0d2983eeb..6c549f78f 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -118,13 +118,13 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, addr->pendtime = (uint32_t)time(NULL); if ( bp != 0 && bundlei >= 0 && bundlei < bp->n ) { - if ( coin->RTheight == 0 && bp != coin->current && bp->issued[bundlei] > 1 ) + if ( coin->RTheight == 0 && bp != coin->current && bp->issued[bundlei] > 1 && addr->pendtime < bp->issued[bundlei]+30 ) return(0); bp->issued[bundlei] = addr->pendtime; } if ( block != 0 ) block->issued = addr->pendtime; - if ( 0 && coin->RTheight > 0 )//&& coin->current == bp ) + //if ( 0 && coin->RTheight > 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);