fix rpc error and allow auxpow from 30000 on main