Merge pull request #1550 from jl777/FSM

FSM
This commit is contained in:
jl777
2019-06-11 00:28:57 -11:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -1086,11 +1086,11 @@ void scan_claims(int32_t issueflag,char *refcoin,int32_t batchid)
else if ( batchid == 2 ) else if ( batchid == 2 )
{ {
batchmin = 1;//777 * SATOSHIDEN; batchmin = 1;//777 * SATOSHIDEN;
batchmax = 17777 * SATOSHIDEN; batchmax = 47777 * SATOSHIDEN;
} }
else if ( batchid == 3 ) else if ( batchid == 3 )
{ {
batchmin = 17777 * SATOSHIDEN; batchmin = 47777 * SATOSHIDEN;
batchmax = 1000000 * SATOSHIDEN; batchmax = 1000000 * SATOSHIDEN;
} }
for (i=0; i<NUM_CLAIMS; i++) for (i=0; i<NUM_CLAIMS; i++)
@@ -1246,7 +1246,7 @@ int64_t sum_of_vins(char *refcoin,int32_t *totalvinsp,int32_t *uniqaddrsp,bits25
{ {
if ( update_addrstats(srcaddr,amount) < 0 ) if ( update_addrstats(srcaddr,amount) < 0 )
(*uniqaddrsp)++; (*uniqaddrsp)++;
printf("add %s <- %.8f\n",srcaddr,dstr(amount)); //printf("add %s <- %.8f\n",srcaddr,dstr(amount));
total += amount; total += amount;
(*totalvinsp)++; (*totalvinsp)++;
} }
@@ -1289,7 +1289,7 @@ void reconcile_claims(char *fname)
else fields[n][i++] = *str++; else fields[n][i++] = *str++;
} }
//printf("%s\n",fields[0]); //printf("%s\n",fields[0]);
total += update_claimstats(fields[0],fields[2],fields[4],atof(fields[3])*SATOSHIDEN + 0.0000000049); total += update_claimstats(fields[1],fields[3],fields[6],atof(fields[4])*SATOSHIDEN + 0.0000000049);
numlines++; numlines++;
} }
fclose(fp); fclose(fp);

View File

@@ -673,7 +673,7 @@ int32_t komodo_bannedset(int32_t *indallvoutsp,uint256 *array,int32_t max)
} }
for (i=0; i<sizeof(banned_txids)/sizeof(*banned_txids); i++) for (i=0; i<sizeof(banned_txids)/sizeof(*banned_txids); i++)
array[i] = uint256S(banned_txids[i]); array[i] = uint256S(banned_txids[i]);
*indallvoutsp = i-6; *indallvoutsp = i-9;
return(i); return(i);
} }