From ff42b0225a965e2809779f5f42dee0075f12b999 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 18 Aug 2016 22:16:44 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 840ab5bad..05957f3f7 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -599,10 +599,10 @@ void iguana_gotblockhashesM(struct iguana_info *coin,struct iguana_peer *addr,bi { if ( n > coin->chain->bundlesize ) iguana_sendblockreqPT(coin,addr,0,-1,blockhashes[1],0); - else if ( coin->RTheight > 0 ) + if ( coin->RTheight > 0 ) { for (i=1; ihdrsQ,queueitem(hashstr),1); if ( bp == coin->current && coin->blocks.hwmchain.height > 100 ) { - init_hexbytes_noT(hashstr,coin->blocks.hwmchain.RO.hash2.bytes,sizeof(bits256)); + init_hexbytes_noT(hashstr,bp->hashes[0].bytes,sizeof(bits256)); queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(hashstr),1); - bits256 hash2 = iguana_blockhash(coin,coin->blocks.hwmchain.height-10); - init_hexbytes_noT(hashstr,hash2.bytes,sizeof(bits256)); + printf("%s issue HWM HDRS [%d] %s\n",coin->symbol,bp->hdrsi,hashstr); + init_hexbytes_noT(hashstr,coin->blocks.hwmchain.RO.hash2.bytes,sizeof(bits256)); printf("%s issue HWM HDRS %d-10 %s\n",coin->symbol,coin->blocks.hwmchain.height,hashstr); queue_enqueue("hdrsQ",&coin->hdrsQ,queueitem(hashstr),1); }