Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
23f607d638
  1. 4
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

4
iguana/iguana_bundles.c

@ -478,7 +478,7 @@ 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,now > block->issued+lag*10);
iguana_blockQ("kick",coin,bp,j,block->RO.hash2,0*(now > block->issued+lag*10));
bp->issued[i] = block->issued = now;
}
}
@ -499,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,now > block->issued+lag*10);
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,0*(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);

2
iguana/iguana_recv.c

@ -575,7 +575,7 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct
{
bp->hdrtime = (uint32_t)time(NULL);
blockhashes[0] = bp->hashes[0];
iguana_blockQ("recvhash0",coin,bp,0,blockhashes[0],1);
iguana_blockQ("recvhash0",coin,bp,0,blockhashes[0],0);
if ( num >= coin->chain->bundlesize )
{
iguana_blockQ("recvhash1",coin,0,-1,blockhashes[coin->chain->bundlesize],0);

Loading…
Cancel
Save