|
@ -907,7 +907,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp) |
|
|
} |
|
|
} |
|
|
if ( ptr != 0 ) |
|
|
if ( ptr != 0 ) |
|
|
myfree(ptr,sizeof(*ptr) * n); |
|
|
myfree(ptr,sizeof(*ptr) * n); |
|
|
printf("[%4d].%-6d duration.%-2d [millis %8.3f] vectors %-6d errs.%d [%5.2f%%] %d %9s of %d\n",bp->hdrsi,bp->numtmpspends,(uint32_t)time(NULL)-starttime,OS_milliseconds()-startmillis,spendind,errs,100.*(double)emitted/(total+1),emit,mbstr(str,sizeof(*ptr) * emit),n); |
|
|
printf("[%4d].%-6d duration.%-2d [millis %8.3f] vectors %-6d errs.%d [%5.2f%%] %7d %9s of %d\n",bp->hdrsi,bp->numtmpspends,(uint32_t)time(NULL)-starttime,OS_milliseconds()-startmillis,spendind,errs,100.*(double)emitted/(total+1),emit,mbstr(str,sizeof(*ptr) * emit),n); |
|
|
if ( errs != 0 ) |
|
|
if ( errs != 0 ) |
|
|
exit(-1); |
|
|
exit(-1); |
|
|
return(-errs); |
|
|
return(-errs); |
|
@ -1655,9 +1655,9 @@ int32_t iguana_spendvectorsaves(struct iguana_info *coin) |
|
|
int32_t i,j,n,iter; struct iguana_bundle *bp; |
|
|
int32_t i,j,n,iter; struct iguana_bundle *bp; |
|
|
if ( coin->spendvectorsaved != 0 ) |
|
|
if ( coin->spendvectorsaved != 0 ) |
|
|
return(0); |
|
|
return(0); |
|
|
printf("SAVE SPEND VECTORS\n"); |
|
|
|
|
|
coin->spendvectorsaved = 1; |
|
|
coin->spendvectorsaved = 1; |
|
|
n = coin->bundlescount; |
|
|
n = coin->bundlescount - 1; |
|
|
|
|
|
printf("SAVE SPEND VECTORS %d of %d\n",n,coin->bundlescount); |
|
|
for (iter=0; iter<2; iter++) |
|
|
for (iter=0; iter<2; iter++) |
|
|
{ |
|
|
{ |
|
|
for (i=0; i<n; i++) |
|
|
for (i=0; i<n; i++) |
|
|