Update miner.c