Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
43cb9d3385
  1. 5
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_recv.c

5
iguana/iguana_bundles.c

@ -148,10 +148,7 @@ int32_t iguana_hash2set(struct iguana_info *coin,char *debugstr,struct iguana_bu
bits256_str(str2,*orighash2p), bits256_str(str3,newhash2);
printf("WARNING iguana_hash2set overwrite %s [%s] %s with %s [%d:%d]\n",coin->symbol,debugstr,str2,str3,bp->hdrsi,bundlei);
}
return(-1);
//*orighash2p = newhash2;
// getchar();
// return(-1);
*orighash2p = newhash2;
}
if ( isinside != 0 )
{

2
iguana/iguana_recv.c

@ -1129,6 +1129,7 @@ void iguana_mainchain_clear(struct supernet_info *myinfo,struct iguana_info *coi
height = oldhwm->height;
for (i=0; i<n; i++,height--)
{
iguana_RTnewblock(myinfo,coin,tmp);
bits256_str(str,tmp->RO.hash2);
if ( tmp->mainchain == 0 )
printf("%s iguana_mainchain_clear: ORPHANED ht.%d %s\n",coin->symbol,tmp->height,str);
@ -1144,7 +1145,6 @@ void iguana_mainchain_clear(struct supernet_info *myinfo,struct iguana_info *coi
printf("iguana_mainchain_clear: got null tmp i.%d of %d %s\n",i,n,str);
return;
}
iguana_RTnewblock(myinfo,coin,tmp);
}
if ( tmp != mainchain && coin->RTheight > 0 )
printf("iguana_mainchain_clear: unexpected mismatch ht.%d vs %d %s\n",tmp->height,mainchain->height,bits256_str(str,tmp->RO.hash2));

Loading…
Cancel
Save