Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
fc0250b8c2
  1. 3
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

3
iguana/iguana_bundles.c

@ -1348,7 +1348,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
bp->issued[j] = block->issued;
}
}
if ( 0 && bp->hdrsi >= starti && bp->hdrsi < lasti )
if ( bp->hdrsi >= starti && bp->hdrsi < lasti )
iguana_bundlemissings(myinfo,coin,bp,now);
}
bp->metric = coin->bundlescount - bp->hdrsi;
@ -1441,6 +1441,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
if ( bp != coin->current )
{
printf("new 1st.%d\n",bp->hdrsi);
iguana_bundleissuemissing(myinfo,coin,bp,1 + (rand() % 3),1.);
if ( bp->queued == 0 )
iguana_bundleQ(myinfo,coin,bp,0);
}

2
iguana/iguana_recv.c

@ -957,7 +957,7 @@ uint32_t iguana_allhashcmp(struct supernet_info *myinfo,struct iguana_info *coin
block->hh.prev = prev;
}
//if ( bp->hdrsi < coin->MAXBUNDLES )
iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],1);
iguana_blockQ("allhashes",coin,bp,i,blockhashes[i],0);
} else printf("no allhashes block.%p or mismatch.%p\n",block,bp->blocks[i]);
prev = block;
}

Loading…
Cancel
Save