|
|
@ -2511,19 +2511,6 @@ int32_t iguana_bundlesaveHT(struct iguana_info *coin,struct OS_memspace *mem,str |
|
|
|
{ |
|
|
|
char str[65],str2[65]; printf("%s d.%d ht.%d %s saved lag.%d elapsed.%ld\n",bits256_str(str2,newchain.H.data->sha256),depth,dest->height,mbstr(str,dest->H.data->allocsize),now-starttime,time(NULL)-now); |
|
|
|
retval = 0; |
|
|
|
for (j=0; j<num; j++) |
|
|
|
{ |
|
|
|
mapchain = &R[j]; |
|
|
|
struct iguana_unspent20 *U; struct iguana_spend256 *S; |
|
|
|
U = (void *)(long)((long)mapchain->H.data + (long)mapchain->H.data->Uoffset); |
|
|
|
S = (void *)(long)((long)mapchain->H.data + (long)mapchain->H.data->Soffset); |
|
|
|
for (i=0; i<mapchain->H.data->numunspents; i++) |
|
|
|
if ( U[i].scriptptr != 0 ) |
|
|
|
free(U[i].scriptptr); |
|
|
|
for (i=0; i<mapchain->H.data->numspends; i++) |
|
|
|
if ( S[i].vinscriptptr != 0 ) |
|
|
|
free(S[i].vinscriptptr); |
|
|
|
} |
|
|
|
} |
|
|
|
iguana_bundlemapfree(mem,&HASHMEM,ipbits,ptrs,filesizes,num,R,bp->n); |
|
|
|
if ( retval == 0 ) |
|
|
|