Support CHIPS

This commit is contained in:
jl777
2019-06-11 01:35:49 -11:00
parent 679bbcf234
commit 99dfd5b3c9

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 = 47777 * SATOSHIDEN; batchmax = 77777 * SATOSHIDEN;
} }
else if ( batchid == 3 ) else if ( batchid == 3 )
{ {
batchmin = 47777 * SATOSHIDEN; batchmin = 77777 * SATOSHIDEN;
batchmax = 1000000 * SATOSHIDEN; batchmax = 1000000 * SATOSHIDEN;
} }
for (i=0; i<NUM_CLAIMS; i++) for (i=0; i<NUM_CLAIMS; i++)
@@ -1117,9 +1117,8 @@ void scan_claims(int32_t issueflag,char *refcoin,int32_t batchid)
} }
continue; continue;
} }
if ( item->total > item->refundvalue*1.05 + 10*SATOSHIDEN ) if ( item->total > item->refundvalue*1.1 + 10*SATOSHIDEN )
{ {
//if ( (item->total-item->refundvalue) > 777*SATOSHIDEN )
printf("possible.%d stolen %s %.8f vs refund %.8f -> %.8f\n",batchid,item->oldaddr,dstr(item->total),dstr(item->refundvalue),dstr(item->total)-dstr(item->refundvalue)); printf("possible.%d stolen %s %.8f vs refund %.8f -> %.8f\n",batchid,item->oldaddr,dstr(item->total),dstr(item->refundvalue),dstr(item->total)-dstr(item->refundvalue));
numstolen++; numstolen++;
possiblestolen += (item->total - item->refundvalue); possiblestolen += (item->total - item->refundvalue);
@@ -1324,7 +1323,7 @@ int32_t main(int32_t argc,char **argv)
coinstr = clonestr(argv[1]); coinstr = clonestr(argv[1]);
acstr = coinstr; acstr = coinstr;
} }
if ( strcmp(coinstr,"KMD") == 0 ) if ( 1 )//strcmp(coinstr,"KMD") == 0 )
{ {
sprintf(buf,"%s-Claims.csv",coinstr); sprintf(buf,"%s-Claims.csv",coinstr);
reconcile_claims(buf); reconcile_claims(buf);