Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
d9e6c2203c
  1. 10
      iguana/iguana777.h
  2. 6
      iguana/iguana_recv.c

10
iguana/iguana777.h

@ -263,12 +263,12 @@ struct iguana_block
#define IGUANA_LHASH_UNSPENTS 2 // #define IGUANA_LHASH_UNSPENTS 2 //
#define IGUANA_LHASH_SPENDS 3 // #define IGUANA_LHASH_SPENDS 3 //
#define IGUANA_LHASH_PKHASHES 4 // #define IGUANA_LHASH_PKHASHES 4 //
#define IGUANA_LHASH_SPENTINDS 5 //#define IGUANA_LHASH_SPENTINDS 5
//#define IGUANA_LHASH_FIRSTSPENDS 5 // //#define IGUANA_LHASH_FIRSTSPENDS 5 //
#define IGUANA_LHASH_ACCOUNTS 6 // #define IGUANA_LHASH_ACCOUNTS 5 //
#define IGUANA_LHASH_EXTERNALS 7 // #define IGUANA_LHASH_EXTERNALS 6 //
#define IGUANA_LHASH_TXBITS 8 // #define IGUANA_LHASH_TXBITS 7 //
#define IGUANA_LHASH_PKBITS 9 // #define IGUANA_LHASH_PKBITS 8 //
#define IGUANA_NUMLHASHES (IGUANA_LHASH_PKBITS + 1) #define IGUANA_NUMLHASHES (IGUANA_LHASH_PKBITS + 1)
struct iguana_counts struct iguana_counts

6
iguana/iguana_recv.c

@ -328,8 +328,8 @@ struct iguana_bundle *iguana_bundleset(struct iguana_info *coin,struct iguana_bl
if ( block != origblock ) if ( block != origblock )
iguana_blockcopy(coin,block,origblock); iguana_blockcopy(coin,block,origblock);
*blockp = block; *blockp = block;
//if ( bits256_nonz(block->RO.prev_block) > 0 ) if ( bits256_nonz(block->RO.prev_block) > 0 )
// iguana_patch(coin,block); iguana_patch(coin,block);
if ( (bp= iguana_bundlefind(coin,&bp,&bundlei,block->RO.hash2)) != 0 ) if ( (bp= iguana_bundlefind(coin,&bp,&bundlei,block->RO.hash2)) != 0 )
{ {
if ( bundlei < coin->chain->bundlesize ) if ( bundlei < coin->chain->bundlesize )
@ -839,7 +839,7 @@ int32_t iguana_processrecv(struct iguana_info *coin) // single threaded
lflag++; lflag++;
//else printf("chainlink error for %d\n",coin->blocks.hwmchain.height+1); //else printf("chainlink error for %d\n",coin->blocks.hwmchain.height+1);
} }
else if ( 1 ) else if ( 0 )
{ {
double threshold,lag = OS_milliseconds() - coin->backstopmillis; double threshold,lag = OS_milliseconds() - coin->backstopmillis;
threshold = (10 + coin->longestchain - coin->blocksrecv); threshold = (10 + coin->longestchain - coin->blocksrecv);

Loading…
Cancel
Save