Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
469e3d0eef
  1. 5
      iguana/iguana_bundles.c

5
iguana/iguana_bundles.c

@ -478,7 +478,8 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
flag++;
counter++;
block->peerid = 0;
iguana_blockQ("kick",coin,bp,j,block->RO.hash2,1);
iguana_blockQ("kick",coin,bp,j,block->RO.hash2,now > block->issued+lag*10);
bp->issued[i] = block->issued = now;
}
}
printf("kill peer.%d %s reissued\n",i,addr->ipaddr);
@ -498,7 +499,7 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
if ( bp == coin->current )
{
counter++;
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,1);
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,now > block->issued+lag*10);
//if ( bp == coin->current && (addr= coin->peers.ranked[rand() % numpeers]) != 0 )
// iguana_sendblockreqPT(coin,addr,bp,i,block->RO.hash2,0);
printf("[%d:%d] ",bp->hdrsi,i);

Loading…
Cancel
Save