Post
Topic
Board Bitcoin Technical Support
Re: Pushpool - Tech Support | Web design donation pot: 4.15 BTC
by
Xenland
on 12/06/2011, 02:35:01 UTC
the pin cannot start with 0. if you try it throws invalid pin. probably because whatever command php uses to determine the length cuts leading zeros.
bug just cost me a pool worker :-(

in register.php (onyl one i looked at) look for this section

 //valid date authpin is valid
                        if($authPin > 9999){
                                if(!is_int($authPin)){
                                        $validRegister = 0;
                                        $returnError .= " | Not a valid authpin";
                                }
                        }else{
                                $validRegister = 0;
                                $returnError .= " | Authorization pin number is not valid";
                        }

change the strlen($authpin) >=4 to what i put there so it looks just like that.

In lieu, another suggestion was strlen(('x' + $authpin) -1)

Thanks for the bug report ill have that fix uploaded very soon. On a features note im still on schedule i just got my 6990 so trying to ge that running so i can get back to work on the features like worker graphs, blog updates editor, and i still have to test out a potential bug in the blockfound page.

Thanks for everyone patience in this down time