Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4275c1a91d
  1. 4
      iguana/iguana_recv.c
  2. 2
      iguana/main.c

4
iguana/iguana_recv.c

@ -970,7 +970,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
if ( bp != 0 && bits256_nonz(hash2) == 0 ) if ( bp != 0 && bits256_nonz(hash2) == 0 )
{ {
hash2 = bp->hashes[bundlei]; hash2 = bp->hashes[bundlei];
/*if ( bits256_nonz(hash2) == 0 && bp->speculative != 0 ) if ( bits256_nonz(hash2) == 0 && bp->speculative != 0 )
{ {
hash2 = bp->speculative[bundlei]; hash2 = bp->speculative[bundlei];
if ( bits256_nonz(hash2) > 0 ) if ( bits256_nonz(hash2) > 0 )
@ -982,7 +982,7 @@ int32_t iguana_reqblocks(struct iguana_info *coin)
lflag++, flag++, printf("NEWHWM.%d\n",coin->backstop); lflag++, flag++, printf("NEWHWM.%d\n",coin->backstop);
} }
} }
}*/ }
} }
if ( bits256_nonz(hash2) > 0 ) if ( bits256_nonz(hash2) > 0 )
{ {

2
iguana/main.c

@ -355,7 +355,7 @@ void mainloop(struct supernet_info *myinfo)
} }
if ( bp->hdrsi == coin->longestchain/coin->chain->bundlesize ) if ( bp->hdrsi == coin->longestchain/coin->chain->bundlesize )
{ {
iguana_coinflush(ptr->coin,1); //iguana_coinflush(ptr->coin,1);
printf("flushed bp->hdrsi %d == %d coin->longestchain/coin->chain->bundlesize\n",bp->hdrsi,coin->longestchain/coin->chain->bundlesize); printf("flushed bp->hdrsi %d == %d coin->longestchain/coin->chain->bundlesize\n",bp->hdrsi,coin->longestchain/coin->chain->bundlesize);
} }
} }

Loading…
Cancel
Save