From 10392fe9c618f586283f8b27eef72be7c357d5fa Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 21 Mar 2016 19:32:06 -0300 Subject: [PATCH] test --- iguana/iguana_blocks.c | 7 +++++-- iguana/iguana_recv.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_blocks.c b/iguana/iguana_blocks.c index 762e7b7df..d423a433e 100755 --- a/iguana/iguana_blocks.c +++ b/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 ) { diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 0f1642f81..88e425c2c 100755 --- a/iguana/iguana_recv.c +++ b/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); }