Browse Source

genkmd verified

olddPoW
jl777 8 years ago
parent
commit
0f74671bbe
  1. 2
      iguana/iguana_chains.c
  2. 3
      iguana/iguana_recv.c
  3. 4
      iguana/iguana_spendvectors.c

2
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);

3
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; i<n&&i<coin->chain->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;

4
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);
}

Loading…
Cancel
Save