Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
07e245dcb7
  1. 8
      iguana/iguana_recv.c

8
iguana/iguana_recv.c

@ -514,10 +514,10 @@ void iguana_gotblockM(struct iguana_info *coin,struct iguana_peer *addr,struct i
if ( txdata->zblock.fpos == 0 )
{
numtx = origtxdata->zblock.RO.txn_count;
//for (i=0; i<coin->bundlescount; i++)
// if ( (bp= coin->bundles[i]) != 0 && bits256_cmp(bp->hashes[0],txdata->zblock.RO.hash2) == 0 )
// break;
if ( coin->blocks.hwmchain.height > coin->longestchain-coin->chain->bundlesize > 0 )
for (i=0; i<coin->bundlescount; i++)
if ( (bp= coin->bundles[i]) != 0 && bp->utxofinish <= 1 )
break;
if ( i > coin->bundlescount-2 && coin->blocks.hwmchain.height > coin->longestchain-coin->chain->bundlesize > 0 )
{
portable_mutex_lock(&coin->RTmutex);
iguana_RTrawdata(coin,txdata->zblock.RO.hash2,data,&recvlen,&numtx,0);

Loading…
Cancel
Save