|
@ -1182,7 +1182,7 @@ struct iguana_bundle *iguana_bundleset(struct supernet_info *myinfo,struct iguan |
|
|
if ( block != origblock ) |
|
|
if ( block != origblock ) |
|
|
{ |
|
|
{ |
|
|
iguana_blockcopy(coin->chain->zcash,coin->chain->auxpow,coin,block,origblock); |
|
|
iguana_blockcopy(coin->chain->zcash,coin->chain->auxpow,coin,block,origblock); |
|
|
fprintf(stderr,"bundleset block.%p vs origblock.%p prev.%d bits.%x fpos.%d\n",block,origblock,bits256_nonz(prevhash2),block->fpipbits,block->fpos); |
|
|
//fprintf(stderr,"bundleset block.%p vs origblock.%p prev.%d bits.%x fpos.%d\n",block,origblock,bits256_nonz(prevhash2),block->fpipbits,block->fpos);
|
|
|
} |
|
|
} |
|
|
*blockp = block; |
|
|
*blockp = block; |
|
|
if ( coin->blocks.hwmchain.height > 0 && (hwmblock= iguana_blockfind("hwm",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) |
|
|
if ( coin->blocks.hwmchain.height > 0 && (hwmblock= iguana_blockfind("hwm",coin,coin->blocks.hwmchain.RO.hash2)) != 0 ) |
|
@ -1312,7 +1312,7 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct supernet_info *myinfo,struc |
|
|
if ( zblocks != 0 && n > 0 ) |
|
|
if ( zblocks != 0 && n > 0 ) |
|
|
{ |
|
|
{ |
|
|
memset(prevhash2.bytes,0,sizeof(prevhash2)); |
|
|
memset(prevhash2.bytes,0,sizeof(prevhash2)); |
|
|
for (i=1,match=0; i<n; i++) |
|
|
for (i=1,match=0; i<n&&i<coin->chain->bundlesize; i++) |
|
|
{ |
|
|
{ |
|
|
//fprintf(stderr,"i.%d of %d bundleset\n",i,n);
|
|
|
//fprintf(stderr,"i.%d of %d bundleset\n",i,n);
|
|
|
if ( bits256_cmp(zblocks[i].RO.prev_block,coin->blocks.hwmchain.RO.hash2) == 0 ) |
|
|
if ( bits256_cmp(zblocks[i].RO.prev_block,coin->blocks.hwmchain.RO.hash2) == 0 ) |
|
|