From 0f74671bbe0bba9bbaffd35f6c66bf854f83760b Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 1 Nov 2016 14:30:03 -0300 Subject: [PATCH] genkmd verified --- iguana/iguana_chains.c | 2 +- iguana/iguana_recv.c | 3 +-- iguana/iguana_spendvectors.c | 4 +++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_chains.c b/iguana/iguana_chains.c index 3a4f404c9..71cde6a6e 100755 --- a/iguana/iguana_chains.c +++ b/iguana/iguana_chains.c @@ -504,7 +504,7 @@ void iguana_chaininit(struct supernet_info *myinfo,struct iguana_chain *chain,in chain->bundlesize = _IGUANA_BLOCKHASHES; } if ( chain->zcash != 0 ) - chain->bundlesize = 1000; + chain->bundlesize = 500; if ( strcmp(chain->symbol,"BTC") == 0 ) chain->bundlesize = 100; decode_hex((uint8_t *)chain->genesis_hashdata,32,(char *)chain->genesis_hash); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 827ba0493..4c7ea969b 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1358,7 +1358,6 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct supernet_info *myinfo,struc memset(prevhash2.bytes,0,sizeof(prevhash2)); for (i=match=0; ichain->bundlesize; i++) { - //fprintf(stderr,"i.%d of %d bundleset\n",i,n); if ( bits256_cmp(zblocks[i].RO.prev_block,coin->blocks.hwmchain.RO.hash2) == 0 ) { bp = 0, bundlei = -2; @@ -1397,7 +1396,7 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct supernet_info *myinfo,struc if ( bp->issued[bundlei] == 0 )//&& coin->RTheight > 0 ) { bp->issued[bundlei] = 1; - iguana_blockQ("recvhdr",coin,bp,bundlei,block->RO.hash2,0); + iguana_blockQ("recvhdr",coin,bp,bundlei,zblocks[i].RO.hash2,0); } } prevhash2 = zblocks[i].RO.hash2; diff --git a/iguana/iguana_spendvectors.c b/iguana/iguana_spendvectors.c index 6ff55c034..c6fa0437b 100755 --- a/iguana/iguana_spendvectors.c +++ b/iguana/iguana_spendvectors.c @@ -1129,7 +1129,9 @@ int32_t iguana_bundlevalidate(struct supernet_info *myinfo,struct iguana_info *c int32_t i,max,len,errs = 0; struct sha256_vstate vstate; bits256 validatehash; int64_t total = 0; if ( coin->chain->zcash != 0 ) { - printf("need to process joinsplits before can validate.%s\n",coin->symbol); + static uint32_t counter; + if ( counter++ < 3 ) + printf("need to process joinsplits before can validate.%s\n",coin->symbol); bp->validated = (uint32_t)time(NULL); return(bp->n); }