Browse Source

test

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

4
iguana/iguana_bundles.c

@ -531,12 +531,10 @@ int32_t iguana_bundleissue(struct iguana_info *coin,struct iguana_bundle *bp,int
counter++;
if ( priority != 0 )
{
printf("[%d:%d] ",bp->hdrsi,i);
iguana_blockQ("kick",coin,bp,i,block->RO.hash2,bp == coin->current && now > block->issued+lag);
if ( bp == coin->current && now > block->issued+lag*3 && (addr= coin->peers.ranked[rand() % numpeers]) != 0 )
{
printf("[%d:%d] ",bp->hdrsi,i);
iguana_sendblockreqPT(coin,addr,bp,i,block->RO.hash2,0);
}
} else iguana_blockQ("kick",coin,bp,i,block->RO.hash2,0);
flag++;
} //else printf("%d ",now - block->issued);

2
iguana/iguana_recv.c

@ -732,7 +732,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana
if ( bp->bundleheight+bundlei-1 >= coin->blocks.hwmchain.height )
{
printf("prev issue.%s\n",bits256_str(str,prev->RO.hash2));
iguana_blockQ("previssue",coin,bp,bundlei-1,prev->RO.hash2,1);
iguana_blockQ("previssue",coin,bp,bundlei-1,prev->RO.hash2,0);
}
}
}

Loading…
Cancel
Save