add get_blk_num and support extranonce