From 43cb9d338570c55a29250d98f449c7b62a2826c6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 15 Sep 2016 09:45:35 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 5 +---- iguana/iguana_recv.c | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 034069ccc..27c94961f 100755 --- a/iguana/iguana_bundles.c +++ b/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 ) { diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 8a6104a01..1d09636b1 100755 --- a/iguana/iguana_recv.c +++ b/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; iRO.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));