Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
c8450e4624
  1. 4
      iguana/iguana_recv.c

4
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);

Loading…
Cancel
Save