Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
10392fe9c6
  1. 7
      iguana/iguana_blocks.c
  2. 2
      iguana/iguana_recv.c

7
iguana/iguana_blocks.c

@ -356,8 +356,11 @@ struct iguana_block *_iguana_chainlink(struct iguana_info *coin,struct iguana_bl
printf("ERROR: need to fix up bundle for height.%d\n",block->height);
//getchar();
}
bp->hashes[block->height % coin->chain->bundlesize] = block->RO.hash2;
bp->blocks[block->height % coin->chain->bundlesize] = block;
iguana_bundlehash2add(coin,0,bp,block->height % coin->chain->bundlesize,block->RO.hash2);
/* bp->hashes[block->height % coin->chain->bundlesize] = block->RO.hash2;
if ( bp->speculative != 0 )
bp->speculative[block->height % coin->chain->bundlesize] = block->RO.hash2;
bp->blocks[block->height % coin->chain->bundlesize] = block;*/
}
if ( coin->started != 0 && (block->height % coin->chain->bundlesize) == 10 && block->height > coin->longestchain-coin->chain->bundlesize*2 )
{

2
iguana/iguana_recv.c

@ -303,7 +303,7 @@ void iguana_gotblockhashesM(struct iguana_info *coin,struct iguana_peer *addr,bi
req = iguana_bundlereq(coin,addr,'S',0);
req->hashes = blockhashes, req->n = n;
char str[65];
if ( n > 1 )
if ( n > 2 )
printf("bundlesQ blockhashes.%s [%d]\n",bits256_str(str,blockhashes[1]),n);
queue_enqueue("recvQ",&coin->recvQ,&req->DL,0);
}

Loading…
Cancel
Save