miner.h: update
avalon2: finish detect code