|
|
@ -227,7 +227,7 @@ int32_t LP_wifstr_valid(char *symbol,char *wifstr) |
|
|
|
} |
|
|
|
if ( n == 0 || A == 0 || a == 0 ) |
|
|
|
return(0); |
|
|
|
if ( A > 10*a || a < 10*A || n < 20*a || n < 20*A ) // unlikely it is a real wif
|
|
|
|
if ( A > 5*a || a < 5*A || n < a/20 || n < A/20 ) // unlikely it is a real wif
|
|
|
|
{ |
|
|
|
printf("reject wif %s due to n.%d a.%d A.%d\n",wifstr,n,a,A); |
|
|
|
return(0); |
|
|
|