Update miner.cpp